Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double bitcoinCount = Double.parseDouble(scanner.nextLine()),
- yuanCount = Double.parseDouble(scanner.nextLine()),
- commision = Double.parseDouble(scanner.nextLine()),
- BTCToBGN = 1168, yuanToUSD = 0.15, USDToBGN = 1.76, BGNToEURO = 1.95,
- totalSum = (bitcoinCount * BTCToBGN + yuanCount * yuanToUSD * USDToBGN) / BGNToEURO * (100 - commision) / 100;
- System.out.printf("%.2f\n", totalSum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement