Program -
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
cout<<"enter
the value of a,b,c";
cin>>a>>b>>c;
if(a>b,a>c)
cout<<"a
is a greater="<<a;
else
if(b>c)
cout<<"b
is greater="<<b;
else
cout<<"c
is greater="<<c;
getch();
}
Output :
enter the value
of a,b,c
3
5
8
c is greater=8
0 comments:
Post a Comment