Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calculate():
- total=0
- min=0
- max=0
- for i in range (10):
- x=int(input("input number "+str(i)+" : "))
- total = total+x
- if i==1:
- min=x
- max=x
- else:
- if x<min:
- min=x
- elif x>max:
- max=x
- average= total/10
- print(average)
- print(min)
- print(max)
Advertisement
Add Comment
Please, Sign In to add comment