mencari nilai a>b #kasus 3.1
#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,b;
cout<<"masukan nilai a =";cin>>a;
cout<<"masukan nilai b =";cin>>b;
if(a>b && b<a)
cout<<"nilai lebih besar ="<<a;
else
cout<<"nilai lebih besar ="<<b;
return 0;
}
0 komentar:
Posting Komentar