Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- double paper, cloth, glue, discount;
- cin >> paper >> cloth >> glue >> discount;
- double paperPrice = paper * 5.80, clothPrice = cloth * 7.20, gluePrice = glue * 1.20;
- printf("%.3f\n", (paperPrice + clothPrice + gluePrice) * (1.0 - discount / 100));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement