#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,
0 comments:
Post a Comment