Write an algorithm a class averaging program that will process anarbitrary number of grades each time the program.
Note: This question for C programming.
Answer
#include<stdio.h>int main() { int n = 0, count = 0, i; float sum = 0.0, input, avg; printf(“Enter numbers(-1 to exit): “); while(1){ scanf(“%f”,&input); if(input == -1){ break; }
OR
OR