fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int i,n,score[i];
  5. printf("How many students?");
  6. scanf("%d", &n);
  7. scanf("%d", &score[i]);
  8. int fail=0;
  9. for (i=0;i<n;i++)
  10. {
  11. if(score[i]<60)
  12.  
  13. printf("%d",score[i]);
  14. fail++;
  15. }
  16. printf("不及格的人数为:%d",fail);
  17. return 0;
  18. }
Success #stdin #stdout 0s 544KB
stdin
12 60 45 41 98 97 96 78 93 91 93 12 34
stdout
How many students?12-54184297500不及格的人数为:12