#include void main(void) { /* The simple program that finds the class average of 10 students who wrote a quiz using simple for structure */ int mark, sum, knt; float average; sum = 0; /* initialization, testing and updating of control variable */ /* done in one for instruction backward */ for (knt = 10; knt > 0; knt--) { printf("type the %d mark \t:", knt); scanf("%d", &mark); sum += mark; } average = (float) sum/10; printf("average = %0.2f \n", average); }