Computer Science, asked by AbdulHafeezAhmed, 7 months ago

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 robin3512
8

hope it will helpful for you.....

Attachments:
Answered by shresthakamala56
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