fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5.  
  6. int i;
  7. float n,nfinal;
  8. float nt=0;
  9. printf("Calculo de notas de una materia (cuatro cortes de notas) \n\n");
  10. for(i=0;i<4;i++){
  11. printf(“Ingrese su nota:);
  12. scanf("%f \n", &n);
  13. if (n>=25){
  14. printf(“Ingrese su nota nuevamente:);
  15. scanf("%f \n", &n);
  16. }
  17.  
  18.  
  19.  
  20. nt=nt+n;
  21. }
  22.  
  23. printf("La suma total de las notas es: %f" nt );
  24. nfinal=nt/4;
  25. printf("La nota sobre 20pts es : %f" nfinal);
  26.  
  27.  
  28. return 0;
  29. }
  30.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
22
23
24
22
compilation info
prog.c: In function ‘main’:
prog.c:11:8: error: stray ‘\342’ in program
 printf(“Ingrese su nota: ”);
        ^
prog.c:11:9: error: stray ‘\200’ in program
 printf(“Ingrese su nota: ”);
         ^
prog.c:11:10: error: stray ‘\234’ in program
 printf(“Ingrese su nota: ”);
          ^
prog.c:11:11: error: ‘Ingrese’ undeclared (first use in this function)
 printf(“Ingrese su nota: ”);
           ^~~~~~~
prog.c:11:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:11:19: error: expected ‘)’ before ‘su’
 printf(“Ingrese su nota: ”);
                   ^~
prog.c:11:28: error: stray ‘\342’ in program
 printf(“Ingrese su nota: ”);
                            ^
prog.c:11:29: error: stray ‘\200’ in program
 printf(“Ingrese su nota: ”);
                             ^
prog.c:11:30: error: stray ‘\235’ in program
 printf(“Ingrese su nota: ”);
                              ^
prog.c:14:16: error: stray ‘\342’ in program
         printf(“Ingrese su nota nuevamente: ”);
                ^
prog.c:14:17: error: stray ‘\200’ in program
         printf(“Ingrese su nota nuevamente: ”);
                 ^
prog.c:14:18: error: stray ‘\234’ in program
         printf(“Ingrese su nota nuevamente: ”);
                  ^
prog.c:14:27: error: expected ‘)’ before ‘su’
         printf(“Ingrese su nota nuevamente: ”);
                           ^~
prog.c:14:47: error: stray ‘\342’ in program
         printf(“Ingrese su nota nuevamente: ”);
                                               ^
prog.c:14:48: error: stray ‘\200’ in program
         printf(“Ingrese su nota nuevamente: ”);
                                                ^
prog.c:14:49: error: stray ‘\235’ in program
         printf(“Ingrese su nota nuevamente: ”);
                                                 ^
prog.c:23:44: error: expected ‘)’ before ‘nt’
 printf("La suma total de las notas es: %f" nt );
                                            ^~
prog.c:23:41: warning: format ‘%f’ expects a matching ‘double’ argument [-Wformat=]
 printf("La suma total de las notas es: %f" nt );
                                         ^
prog.c:25:38: error: expected ‘)’ before ‘nfinal’
 printf("La nota sobre 20pts es : %f" nfinal);
                                      ^~~~~~
prog.c:25:35: warning: format ‘%f’ expects a matching ‘double’ argument [-Wformat=]
 printf("La nota sobre 20pts es : %f" nfinal);
                                   ^
prog.c:7:9: warning: variable ‘nfinal’ set but not used [-Wunused-but-set-variable]
 float n,nfinal;
         ^~~~~~
stdout
Standard output is empty