#include <iostream.h>
#include <conio.h>
main()
{
float i,n,a,sum=0;
cout<<"How many numbers would you enter?\t";
cin>>n;
for(i=1;i<=n;i++){
cout<<"Enter number "<<i<<":\t";
cin>>a;
sum=sum+a;
}
cout<<"Average is: "<<sum/n;
getch();
}