Mencari Nilai Terbesar
😊
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int a,s,d;
cout<<"masukan nilai a =";cin>>a;
cout<<"masukan nilai s =";cin>>s;
cout<<"masukan nilai d =";cin>>d;
if(a>s&&s>d)
cout<<"bilangan terbesar = "<<a;
else if(s>a&&s>d)
cout<<"bilangan terbesar ="<<s;
else
cout<<"bilangan terbesar ="<<d;
return 0;
}
Program Raptor: