Write a program to accept user’s input and print the greater of the two numbers
Answers
Answered by
10
Answer:
Program to find the greatest of two numbers and greatest of three numbers is discussed here. Input two or integers from the user and find the greatest number among them.
Input & Output format:
Input consists of 2 integers.
Sample Input and Output :
7
9
5
9 is greater.
Explanation:
Answered by
5
numbers = input("Enter 2 numbers: ").split()
ints = [int(num) for num in numbers]
print(max(ints))
Similar questions