Greatest number of three numbers in C++
#include<iostream> using namespace std ; int main () { int x,y,z,greatest ; cout << "enter first number " ; cin >> x ; cout << "enter second number " ; cin >> y ; cout << "enter third number " ; cin >> z ; greatest = x ; if ( y > greatest ) greatest = y ; if ( z > greatest ) greatest = z ; cout << "\nlargest number is : " << greatest ; return 0 ; } Output: enter first number 5 enter second number 6 enter third number 9 largest number is : 9 Or #include<iostream> using namespace std ; int main () { int x,y,z ; cout << "enter first number " ; cin >> x ; cout << "enter second number " ; cin >> y ; cout << "enter third number " ; cin >> z ; if ( x > y && x > z ) { cout << "x is greater than y" ; cout << "x is greater than z...