fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int a1,a2,sum;
  6.  
  7. printf("Input your number :a1\n ");
  8. scanf("%d", &a1);
  9. printf("Input your number :a2\n");
  10. scanf("%d" , &a2);
  11.  
  12. sum=a1+a2;
  13.  
  14. printf("%d+%d=%d",a1,a2,sum);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5296KB
stdin
1000
8000
stdout
Input your number :a1
 Input your number :a2
1000+8000=9000