input 10 number and display the smallest and largest of them in python
Answers
Answered by
1
n=0
while n<=10:
o=int(input("enter a no'')
n= n+1
p=o
q=o
if o>p:
p=o
if o<q:
q=o
print ("greatest no:" , p)
print("smallest no.:" ,q)
hope it helps
Similar questions