题解 | #及格分数#
及格分数
https://www.nowcoder.com/practice/56513524333148b38945e1989bc7df4e
#include <stdio.h> int main() { int a=0; while((scanf("%d",&a))!=EOF) { if(a>=60)//if和else是同在一个循环中,因此用大括号 printf("Pass\n"); else printf("Fail\n"); } return 0; }
及格分数
https://www.nowcoder.com/practice/56513524333148b38945e1989bc7df4e
#include <stdio.h> int main() { int a=0; while((scanf("%d",&a))!=EOF) { if(a>=60)//if和else是同在一个循环中,因此用大括号 printf("Pass\n"); else printf("Fail\n"); } return 0; }
相关推荐