write a c++ program to fing largest of tree number by using ternary operator
Answers
Answered by
0
Answer:
#include<iostream.h>
#include<conio.h>
int main ()
{
int a,b,c;
clrscr();
cout<<"Enter 3 numbers...";
cin>>a>>b>>c;
if((a>b)&&(a>c))
cout<<endl<<"A is big";
else if(b>c)
cout<<endl<<"B is big";
else
cout<<endl<<"C is big";
getch();
return 0;
}
Similar questions