#include<iostream>标签:语句,count,cout,--,sum,cin,C++,int,include From: https://blog.51cto.com/u_13654233/5834422
#include<stdlib.h>
using namespace std;
int main()
{
int x,count=0,sum=0;
cout << "输入若干整数:" << endl;
cin >> x;
for(; x != 9999;cin >> x)
{
sum += x;
count++;
}
cout << count << "个整数的平均值是:" << (sum / count) << endl;
system("pause");
return 0;
}