fork download
  1. #include <stdio.h>
  2. float N,N2,somma;
  3. int main(void) {
  4. printf("inserisci il primo numero");
  5. scanf("%f",&N);
  6. printf("inserisci il secondo numero");
  7. scanf("%f",&N2);
  8. somma=N+N2;
  9. printf("la somma totale è %d\n",somma);
  10. system ("pause")
  11. // your code goes here
  12. return 0;
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:9:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=]
 printf("la somma totale è %d\n",somma);
                             ^
prog.c:10:1: warning: implicit declaration of function ‘system’ [-Wimplicit-function-declaration]
 system ("pause")
 ^~~~~~
prog.c:12:2: error: expected ‘;’ before ‘return’
  return 0;
  ^~~~~~
stdout
Standard output is empty