0
How to print largest number among 3 digits using conditional operator?
2 ответов
+ 10
If the first number is larger than the second and third number, print first.
If the second number is larger than the first and third number, print second.
If the third number is larger than the first and second number, print third.
+ 9
if(a>b && a>c)
cout<<"largest="<<a;
else if (b>a && b>c)
cout<<"largest="<<b;
else
cout<<"largest="<<c;