Write
programe to find average of a
Number. Number should be given by user
Answers
Answered by
0
Answer(Using Python):
numbers = input("Write all the numbers of which you want the average: ")
num_list = numbers.split(",")
sum_of_num = 0
for i in num_list:
sum_of_num += int(i)
avg = sum_of_num/len(num_list)
print(f"The average is {avg}")
Similar questions