fork download
  1. #include <stdio.h>
  2.  
  3. float calculo (float, int);
  4.  
  5. int main(void) {
  6.  
  7. int andares;
  8. float altura, geral;
  9. printf("digite o numero de andares");
  10. scanf("%d", &andares);
  11. printf("digite a altura dos andares");
  12. scanf("%f", &altura);
  13. geral = calculo(altura, andares);
  14. printf("a altura do predio é %f", geral);
  15. }
  16.  
  17. float calculo (float altura, int andares) {
  18. return altura * andares
  19. }
  20.  
  21.  
Compilation error #stdin compilation error #stdout 0s 10320KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘calculo’:
prog.c:19:2: error: expected ‘;’ before ‘}’ token
  }
  ^
stdout
Standard output is empty