#include
int main(int argc, char *argv[])
{
int i = 0;
int a[10] = {0};
int pass_cnt = 0;
for (i = 0; i < 10; i++)
{
printf("请输入第%d位学生的考试结果:\n", i+1);
scanf("%d", &a[i]);
if (1 == a[i])
{
pass_cnt++;
}
else if (2 != a[i])
{
printf("错误的输入\n");
i--;
}
}
if (pass_cnt >= 10)
{
printf("Too easy\n");
}
return 0;
}
y Mama so very much