Computer Science, asked by dragon49, 9 months ago

write a c++ program to fing largest of tree number by using ternary operator​

Answers

Answered by dhanamvijay2002
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