C++ :
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a,b,c;
cout<<"menampilkan bilangan terbesar"<<endl;
cout<<"masukkan bilangan =";cin>>a;
cout<<"masukkan bilangan2 =";cin>>b;
cout<<"masukkan bilangan3 =";cin>>c;
if(a>=b&&a>=c){
cout<<"bilangan terbesar= "<<a;
}
else if(a<=b&&b>=c){
cout<<"bilangan terbesar= "<<b;
}
else {
cout<<"bilangan terbesar ="<<c;
}
return 0;
}
OUTPUT C++ DAN RAPTOR :
0 komentar:
Posting Komentar