C++ Program to find biggest of three numbers
Program
#include<iostream>
using namespace std;
int main()
{
int a, b, c;
cout << "Enter three numbers\n";
cin >> a >> b >> c;
if(a > b && a > c)
cout << "a is biggest\n";
else if(b > c)
cout << "b is biggest\n";
else
cout << "c is biggest\n";
}
Output
Enter three numbers
10
20
30
c is biggest