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);
- int bitcoins = Integer.parseInt(scanner.nextLine());
- double chineseYuan = Double.parseDouble(scanner.nextLine());
- double commission = Double.parseDouble(scanner.nextLine());
- double dollars = 0.15 * chineseYuan;
- double leva = dollars * 1.76;
- double euro = leva / 1.95;
- double total = ((bitcoins * 1168) + leva) / 1.95;
- double totalAfterCommission = total * (commission / 100);
- System.out.printf("%.2f",total - totalAfterCommission);
- }
- }
Add Comment
Please, Sign In to add comment