#include main() { int num,ctr=0,tot=0; clrscr(); while(ctr<10) { printf("\nEnter the number"); scanf("%d",&num); tot=tot+num; ctr++; } printf("total = %d",tot); getch(); }