P124
#include<stdlib.h>
#include<math.h>
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
int fun(int score[][3],int num)
{
int i,k=0;
for(i=0;i<num;i++)
{
if((score[i][1]>85)&&(score[i][2]>=70)&&(score[i][3]>=70))
k++;
if((score[i][2]>85)&&(score[i][1]>=70)&&(score[i][3]>=70))
k++;
if((score[i][3]>85)&&(score[i][2]>=70)&&(score[i][1]>=70))
k++;
}
return k;
}
int main()
{
int a[100][3],b,c;
char ch;
do
{
int N;
printf("input num:");
scanf("%d",&N);
printf("请输入成绩\n");
for(b=0;b<N;b++)
for(c=0;c<3;c++)
scanf("%d",&a[b][c]);
printf("满足条件的人数:%d\n",fun(a,N));
printf("是否继续?[y/n][y]");
while((ch=getchar())!='\n');
}while((ch=getchar())=='y'||ch=='\n');
return 0;
}