#include
#include
using namespace std;
int main()
{
cout << "Please enter 5 numbers: " << endl;
int numbers[5] = { 0 };
int sum = 0;
for (int i = 0; i < 5; i++)
{
cin >> numbers[i];
sum += numbers[i];
}
double mean = sum / 5;
cout << "The mean of five numbers is : " << mean << endl << endl;
cout << "Numbers larger than mean: " << endl;
for (int i = 0; i < 5; i++)
{
if (numbers[i] > mean)
{
cout << numbers[i] << endl;
}
}
_sleep(10000);
return 0;
}
一、 什么是计算机 计算机(Computer)是一种能接收和存储信息,并按照存储在其内部的程序(这些程序是人们意志的体现)对输入的信息进行加工、处理,然后把处理结果输出的高度自动化的电子设备。