#include main() { int ctr,max,num; ctr=max=0; clrscr(); while(ctr<10) { printf("\nenter a number"); scanf("%d",&num); if(num>max) max=num; ctr++; } printf("\nMaximum of the entered %d numbers is %d",ctr,max); getch(); }