fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the first number: ");
  6. scanf("%d",&n);
  7.  
  8. int m;
  9. printf("Enter the second number: ");
  10. scanf("%d",&m);
  11.  
  12. int sum= m+n;
  13. printf(" The sum is %d",sum);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5320KB
stdin
12
6
stdout
Enter the first number: Enter the second number:  The sum is 18