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