write a program which accept 2 numbers and find out greater one by using math function.
Answers
Answered by
0
ANSWER--
I am writing a simple program in Python.
a= int(input("Enter any number"))
b= int(input("Enter second number"))
if a>b:
print('a')
print("is greater")
else:
print('b')
print("is greater")
---------------------------------------------------------------X
Explanation--
The program is written by using if and else statement
int is used in the first line, assigning the value in a or b, because int only holds integer value.
I hope it helps
Similar questions
Hindi,
3 months ago
Math,
3 months ago
Business Studies,
8 months ago
Physics,
8 months ago
Physics,
1 year ago