Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- const double PRICE_FOR_SQUARE_METER = 7.61;
- const double DISCOUNT = 0.18;
- double greenYard;
- cin >> greenYard;
- double wholeYard = greenYard * PRICE_FOR_SQUARE_METER;
- cout << "The final price is: " << wholeYard - DISCOUNT * wholeYard << " lv." << endl;
- cout << "The discount is: " << DISCOUNT * wholeYard << " lv.";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement