fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int c = 23; // defaults to 0
  5. int a = 24, b = 55;
  6. // your code goes here
  7. // printf ("hello");
  8. printf ("9 = 4 + 5\n");
  9. printf ("%d = %d + %d\n", 19,4,5);
  10. /// c = a + b
  11. printf ("%d=%d + %d\n", c, 4, 5);
  12. printf ("%d = %d + %d\n", c, a, b); // This line is perfect!
  13. // 9 = 4 + 5; // not ok since 9 is not the name of a memory location
  14. scanf ("%d %d", &a, &b);
  15. c = a + b; // this statement is also perfect!
  16. printf ("%d = %d + %d\n", c, a, b); // This line is perfect!
  17. return 0;
  18. }
Success #stdin #stdout 0s 2172KB
stdin
Standard input is empty
stdout
9 = 4 + 5
19 = 4 + 5
23=4 + 5
23 = 24 + 55
79 = 24 + 55