fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. float notas (float p1, float p2)
  5. {
  6. float notaMin;
  7. notaMin=(20-(p1+p2))/2;
  8. return notaMin;
  9. }
  10.  
  11. int main ()
  12. {
  13. float n1, n2, nota;
  14. printf("CÁLCULO DE NOTA PARA APROVAÇÃO:\n")
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:14:48: error: expected ';' after expression
 printf("CÁLCULO DE NOTA PARA APROVAÇÃO:\n")
                                            ^
                                            ;
prog.c:14:48: error: expected '}'
prog.c:12:1: note: to match this '{'
{
^
2 errors generated.
stdout
Standard output is empty