Program to display the larger number out of the two given unequal number?
Answers
Answered by
0
Answer:
The following is the required program:
number1 = float (input ("please enter the first number. "))
number2 = float (input ("please enter the second number. "))
if number1 > number2:
print("The first number is larger than the second number.")
elif number1 < number2:
print("The second number is larger than the first number.")
else:
print("Both the numbers are equal.")
Please mark as brainliest.
Similar questions
Political Science,
4 months ago
Social Sciences,
4 months ago
English,
4 months ago
English,
10 months ago
Computer Science,
10 months ago
Math,
1 year ago