#include void main() { int i,sum,avg,num[10]; sum=0; clrscr(); for(i=0;i<10;i++) { printf("Enter no %d: ",i+1); scanf("%d",&num[i]); sum=sum+num[i]; } avg=sum/i; printf("Total of %d numbers is %d\nAnd the average is %d",i,sum,avg); getch(); }