programme to enter the two members and print the smallest among them.... plz tell me this answer... python
Share
programme to enter the two members and print the smallest among them.... plz tell me this answer... python
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
Answer:
n1 = int(input('Enter 1st number: '))
n2 = int(input('Enter 2nd number: '))
smallest = None
if (n1>n2):
smallest = n2
elif (n2>n1):
smallest = n1
print(smallest,'is the smallest number')