Greatest Among Three Numbers

 

DESCRIPTION
GET HELP
SUBMISSIONS
DISCUSS
Greatest Among Three Numbers
Write a program which prints the greatest among the given three numbers.
Input

The first line of input will contain a number.
The second line of input will contain a number.
The third line of input will contain a number.
Output

The output should be a single line containing the greatest among the three numbers.
Explanation

For example, if the given numbers are 2, 5, and 7. Your code should print the greatest number, which is 7.
Sample Input 1
2
5
7
Sample Output 1
7
Sample Input 2
3
5
2
Sample Output 2
5
a=int(input())
b=int(input())
c=int(input())
if (a>b):
x=a
else:
x=b
if (c>x):
x=c
print(x)

Comments

Popular posts from this blog

CODING ASSIGNMENT 3 Library Management

CODING PRACTICE 11 Music Page

CODING PRACTICE 6 Cricketer Page