fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int aprobados,reprobados,f,nota;
  6. aprobados=0;
  7. reprobados=0;
  8. for(f=1; f <= 10 ;f++)
  9. {
  10. printf("Ingrese la nota:");
  11. scanf("%i",&nota);
  12. if (nota >= 7)
  13. {
  14. aprobados=aprobados+1;
  15. }
  16. else
  17. {
  18. reprobados=reprobados+1;
  19. }
  20. }
  21. printf("Cantidad de aprobados:");
  22. printf("%i",aprobados);
  23. printf("\n");
  24. printf("Cantidad de reprobados:");
  25. printf("%i",reprobados);
  26. getch();
  27. return 0;
  28. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:26:5: warning: implicit declaration of function ‘getch’ [-Wimplicit-function-declaration]
     getch();
     ^~~~~
/home/IM2cFY/ccvZELjz.o: In function `main':
prog.c:(.text.startup+0xa5): undefined reference to `getch'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty