#include main() { int num,ctr,avg,tot; ctr=tot=0; clrscr(); while (ctr<10) { printf("Enter a number: "); scanf("%d",&num); tot=tot+num; ctr++; } avg=tot/ctr; printf("The average of %d numbers is %d",ctr,avg); getch(); }