write the program to find the average of three numbers using python
Answers
Answered by
10
The program accepts user input using the input function.
Next, run loop till the entered number using the for loop and range() function. Next, calculate the sum using a sum = sum + current number formula.
★ At last, after the loop ends, calculate the average using average = sum / n .
Similar questions