
Write a program that takes three numbers a,b, and c as input and prints the largest number amongst them.
Input Format:
The only line of input contains three space-separated integers.
Output Format:
The only line of the output prints the largest integer.
4 6 1
6
6 is the highest of amongst all.
-32 -23 -76
-23
-23 is the highest of amongst all.
-4 0 5
5
5 is the highest of amongst all.
Take input in 3 variables, a, b and c suppose.
Now,
if (a ≥ b && a ≥ c ) print a
else if ( b≥ a && b ≥ c) print b
else print c .