#include<iostream.h> #include<conio.h> void main() { clrscr(); int a,b,c; cout<<"Enter three numbers (A,B,C): "; cin>>a>>b>>c; if(a>b) { if(a>c) cout<<"A="<<a<<"is the Greatest"; else cout<<"C="<<c<<"is the Greatest"; } else { if(b>c) cout<<"B="<<b<<"is the Greatest"; else cout<<"C="<<c<<"is the Greatest"; } getch(); }
For Further Reading,
- Program:To print the table of number in c++
- Program: Multiplication of Matrices
- Program:To check if a character is vowel or not (using if-else Statement)
- Program: To find greatest Of Three Using nested If-else Statement
- Program: WAP To Check A Number is Armstrong or Not
- Program: To print Fibonacci series
0 comments:
Post a Comment