#include
using namespace std;
int main()
{
double a, s=0;
int i;
for(i = 0; i < 5; i ++)
{
cin >> a;
s+=a;
}
cout << "和="<cout << "平均数=" << s/5 << endl;
return 0;
}
#include
#include
using namespace std;
void main()
{
double a,sum=0,avg;
cout<<"Please enter five numbers:\n";
for(int i=0;i<5;i++)
{
cin>>a;
sum+=a;
}
avg=sum/5;
cout<<"The sum of the five numbers is:"<cout<<"The average of the five numbers is:"< system("pause");
}