Computer Science, asked by chuen0582, 8 months ago

Calculate the average marks of 28 students for English, Maths and Science (average for 3 subjects). Write down coding using WHILE loop that will help him to accomplish this task. Use an array for each subject. (PYTHON PROGRAM)

Answers

Answered by Anonymous
1

Answer:

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