fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int num1, num2, result;
  5. printf("Enter first number: ");
  6. scanf("%d", &num1);
  7. printf("Enter second number: ");
  8. scanf("%d", &num2);
  9. result = num1-num2;
  10. printf("%d - %d = %d\n", num1, num2, result);
  11. printf("Press Enter to exit... \n");
  12. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Enter first number: Enter second number: -1415978304 - 32765 = -1416011069
Press Enter to exit...