Write a program that asks the user to enter ten temperatures and then finds the sum. The input temperatures should allow for decimal values.
1
Expert's answer
2020-01-29T05:19:36-0500
print('Enter ten temperatures please')
sum = 0#initialize variable for sumfor i inrange(10):
T = float(input()) #read user inputsum = sum + T #add current temperature value to sumprint('Sum is: ',sum) #print result
The expert did excellent work as usual and was extremely helpful for me.
"Assignmentexpert.com" has experienced experts and professional in the market. Thanks.
Comments