#include <stdio.h> int main() { int score = 0; while (scanf("%d",&score) != EOF) { if (score >= 60) printf("Pass\n"); else printf("Fail\n"); //return 0;//return 0 你写在while循环里面 就废了 只有一个结果打印,不能打印多组结果 } return 0; }