Ahnaf123

SCAN ME !

Dec 12th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a ,b ,sum,product;
  5.  
  6. scanf("%d %d",&a,&b);
  7.  
  8. sum=a+b;
  9.  
  10. product=a*b;
  11.  
  12. float quotient=(float)a/b;
  13.  
  14. printf("sum is %d\n",sum);
  15.  
  16. printf("product is %d\n",product);
  17.  
  18. printf("quotient is %f\n",quotient);
  19.  
  20. printf("Done");
  21. return 0;
  22. } //write the input like 100 20
Advertisement
Add Comment
Please, Sign In to add comment