fork download
  1. #include <stdio.h>
  2. int main() {
  3.  
  4. int a, b, sum;
  5.  
  6. printf("Enter two integers: ");
  7. scanf("%d %d", &a, &b);
  8.  
  9.  
  10. sum = a + b;
  11.  
  12. printf("%d",sum);
  13. return 0;
  14. }
Success #stdin #stdout 0s 5296KB
stdin
1
2
10
42
11
stdout
Enter two integers: 3