Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- double procesorPrice, videoPrice, ramPrice;
- cin >> procesorPrice >> videoPrice >> ramPrice;
- int ramCount;
- cin >> ramCount;
- double discount, USDToBGN = 1.57;
- cin >> discount;
- double sum = ((procesorPrice + videoPrice) * (1 - discount) + ramPrice * ramCount) * USDToBGN;
- printf("Money needed - %.2f leva.\n", sum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement