fork download
  1. # include <stdio.h>
  2. int main()
  3. {float sum,sub,multi,division,modulo;
  4.  
  5. int a,b;
  6. printf("enter the first number:");
  7. scanf("%d",&a);
  8. printf(" enter the second number:");
  9. scanf("%d",&b);
  10.  
  11. sum=a+b;
  12. sub=a-b;
  13. multi=a*b;
  14. division=a/b;
  15. modulo=a%b;
  16.  
  17. printf("sum=%d/n",a,b,sum);
  18. printf("sub=%d/n",a,b,sub);
  19. return 0;
  20. }
Success #stdin #stdout 0s 5436KB
stdin
a=25
b=4
stdout
enter the first number: enter the second number:sum=-1310363072/nsub=-1310363072/n