#include<iostream.h>#include<conio.h>void main(){ clrscr(); //to clear the screen int i,n,x,sum=0; cout<<"How many numbers?"; cin>>n;
for(i=1;i<=n;++i) { cout<<"
Enter number "<<i<<": "; cin>>x; sum+=x; }
x=sum/n; cout<<"
Average="<<x; getch(); //to stop the screen}
Read more »