Computer Science, asked by krati1205, 3 months ago

write a program which accept 2 numbers and find out greater one by using math function.​

Answers

Answered by RajatGreat
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