1067: 显示两级成绩
Description
输入一个正整数 repeat (0<repeat<10),做repeat 次下列运算:
输入一个学生的数学成绩,如果它低于 60,输出“Fail”,否则,输出“Pass”。
Input
见Sample
Output
见Sample
Sample Input
2
60 59
Sample Output
Pass
Fail
代码
#include<stdio.h>
int main()
{
int i,r,x;
scanf("%d",&r);
for(i=1;i<=r;i++){
scanf("%d",&x);
if(x<60){
printf("Fail\n");
}else{
printf("Pass\n");
}
}
return 0;
}