Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float first, second, add, subtract, multiply, divide;
- printf("Enter two integers\n");
- scanf("%f%f%f", &first, &second, &third);
- add = first + second + third;
- subtract = first - second - third;
- multiply = first * second * third;
- divide = first / second / third;
- printf("Sum = %f\n", add);
- printf("Difference = %f\n", subtract);
- printf("Multiplication = %f\n", multiply);
- printf("Division = %f\n", divide);
- return 0;
- }
Add Comment
Please, Sign In to add comment