Write a program to find out greatest of two number
Answers
Answered by
0
Answer:
Max program
Explanation:
this will be helpful
Answered by
1
Answer:
a,b = input('Enter two numbers: ').split(' ')
a = int(a); b = int(b)
if a>b:
print(a)
else:
print(b)
Explanation:
Ask the user to enter two integer values.
Read the two integer values in num1 and num2 (integer variables).
Check if num1 is greater than num2.
If true, then print 'num1' as the greatest number.
If false, then print 'num2' as the greatest number.
Similar questions