fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,b,c,d,e,f,g,h,i,j,k,l,m;
  5. printf("\t\t\t\t\tADDITION");
  6. printf("\nEnter the first number:");
  7. scanf("%d",&a);
  8. printf("\nEnter the second number:");
  9. scanf("%d",b);
  10. c=a+b;
  11. printf("\nThe addition is:%d",c);
  12. printf("\n\n\n\n\n\t\t\t\t\tSUBSTRACTION");
  13. printf("\nEnter the first number:");
  14. scanf("%d",&d);
  15. printf("\nEmter the second number:");
  16. scanf("%d",e);
  17. f=d-e;
  18. printf("The addition is:%d",f);
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
					ADDITION
Enter the first number:
Enter the second number:
The addition is:0




					SUBSTRACTION
Enter the first number:
Emter the second number:The addition is:0