fork download
  1. #include<stdio.h>
  2. main()
  3. {
  4. int a,b,add,sub,mult;
  5. float div;
  6.  
  7. printf("Enter the value of a : ");
  8. scanf("%d",&a);
  9. printf("Enter the value of b : ");
  10. scanf("%d",&b);
  11. add= a+b;
  12. sub= a-b;
  13. mult= a*b;
  14. div= a/b;
  15. printf("add=%d /n sub=%d /n mult=%d /n div=%f",add,sub,mult,div);
  16. }
  17.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Enter the value of a : Enter the value of b : add=-318440372 /n sub=-318505900 /n mult=-1978265920 /n div=-9720.000000