SPAMMERS, STAY AWAY. Can somebody give me a code in Python in which we find the average of four numbers using functions?
Answers
Answered by
8
hope it will helpful for you.....
Attachments:
Answered by
1
Answer:
Mark AS BRAINLIEST!!!!!!!!!!!!
Explanation:
while True:
print("Enter 'x' for exit.")
print("Enter any 3 numbers to find average: ")
n1 = input()
n2 = input()
n3 = input()
if n1 == 'x':
break
else:
number1 = int(n1)
number2 = int(n2)
number3 = int(n3)
sum = number1 + number2 + number3
average = sum/3
print("Average of entered 3 numbers is ", average, "\n")
Similar questions