fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int num1 = 5; // first number
  5. int num2 = 7; // second number
  6. int sum;
  7.  
  8. sum = num1 + num2; // add them
  9.  
  10. printf("The sum of %d and %d is %d\n", num1, num2, sum);
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
The sum of 5 and 7 is 12