Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- double bitcoinCount, yuanCount, commision, totalSum,
- BTCToBGN = 1168, yuanToUSD = 0.15, USDToBGN = 1.76, BGNToEURO = 1.95;
- cin >> bitcoinCount >> yuanCount >> commision;
- totalSum = (bitcoinCount * BTCToBGN + yuanCount * yuanToUSD * USDToBGN) / BGNToEURO * (100 - commision) / 100;
- printf("%.2f\n", totalSum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement