Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- double squareMeters;
- cin >> squareMeters;
- double price = squareMeters * 7.61;
- double discount = price * 0.18;
- double finalPrice = price - discount;
- printf("The final price is: %.2f lv.\n", finalPrice);
- printf("The discount is: %.2f lv.\n", discount);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement