write c++ program to find maximum number for three variables using statement ?
please help me..

Answer:
int a, b, c;
cin >> a >> b >> c;
max = (a>b) ?
(a > c ? a : c) :
(b > c ? b : c);
cout << max;