cout<<"Enter how many numbers do you want to put in.\n";
cin>>n;
do
{
cout<<"Enter a whole number.\n";
cin>>number;
total=number+total;
count++;
}while (count!=n);
average= total/count;
cout<<"After add these "<<count<<" numbers,\n";
cout<<"the total of these numhers are:\n";
cout<<total<<endl;
cout<<"The average is:\n";
cout<<average<<endl;
return 0;
}