#include <iostream>
using namespace std;
int main()
{
double consumption;//定义消费额
int count = 0; //定义计数器
for (int i=0; i < 5; i++)
{
cout << "请输入第" << i+1 << "个顾客的消费额" << endl;
cin >> consumption;
if (consumption >= 100)
{
continue;
}
else if (consumption >= 0 && consumption < 100)
{
count++;//开始计数
}
else
{
cout << "输入数据有误" << endl;
}
}
cout << "消费额在100以下的顾客数量为" << count++ << endl;
}