Input
Output
#include <iostream> using namespace std; int main() { int n1 = 5, n2 = 2, n3 =3; cout << "Enter the three different numbers: "; cout << n1 <<" "<< n2 <<" "<< n3 << endl; if( n1>n2 && n1>n3 ) { cout << n1 << " is the largest number."; } if( n2>n1 && n2>n3 ) { cout << n2 << "is the largest number."; } if( n3>n1 && n3>n2 ) { cout << n3 << " is the largest number."; } return 0; }