Program to enter three integer and find the biggest no using
IF.
#include <iostream>
using namespace std;
int main(){
int a, b,c;
cout
<< "Enter
Number"
<< endl;
cin
>> a;
cout
<< "Enter
number"
<< endl;
cin
>> b;
cout
<< "Enter
number"
<< endl;
cin
>> c;
if (a > b && a > c){
cout
<< "Bigest No.
is " <<
a<< endl;
}
if (b > c && b > a){
cout
<< "Bigest No.
is " << b
<< endl;
}
if (c > b && b > a){
cout
<< "Bigest No.
is " << c
<< endl;
}
system("pause");
return 0;
}
Comments
Post a Comment