#include <stdio.h>
#include "/Users/mac/Desktop/家中练习/1.h"
int main(){
for (int class = 1;class <4;class++){
int n = printfscore();
printf("%d班不及格人数为:%d\n",class,n );
}
return 0;
}
#include <stdio.h>
int printfscore(){
int count = 0;
int n = 0;
for (int i = 1;i < 8;i ++){
printf("请输入成绩:\n");
scanf("%d",&count);
if (count>=60){
continue;
}
n ++;
}
printf("不及格人数为:%d\n",n );
return n ;
}
int printfscore();
今天做的调用函数 |