Advertisement
ruhul0

Untitled

May 27th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. float first, second, add, subtract, multiply, divide;
  6.  
  7. printf("Enter two integers\n");
  8. scanf("%f%f%f", &first, &second, &third);
  9.  
  10. add = first + second + third;
  11. subtract = first - second - third;
  12. multiply = first * second * third;
  13. divide = first / second / third;
  14.  
  15. printf("Sum = %f\n", add);
  16. printf("Difference = %f\n", subtract);
  17. printf("Multiplication = %f\n", multiply);
  18. printf("Division = %f\n", divide);
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement