40.0k views
3 votes
Write c++ program to find maximum number for three variables using statement ?

please help me..​

Write c++ program to find maximum number for three variables using statement ? please-example-1

2 Answers

7 votes
The variable 10 ~ 810 would equal off to 10 leaving 40 left over..
User Nupadhyaya
by
6.0k points
5 votes

Answer:

int a, b, c;

cin >> a >> b >> c;

max = (a>b) ?

(a > c ? a : c) :

(b > c ? b : c);

cout << max;

User Danil Onishchenko
by
6.2k points