Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Mentorship;
- import java.util.Scanner;
- public class test {
- public static void main(String[] agrs) {
- Scanner scanner = new Scanner(System.in);
- double bitcoins = Double.parseDouble(scanner.nextLine())*1168;
- double yuan = Double.parseDouble(scanner.nextLine())*0.15*1.76;
- double commission = Double.parseDouble(scanner.nextLine())/100;
- double bitcoinsToEur = bitcoins / 1.95;
- double yuanToEur = yuan / 1.95;
- System.out.printf("%.2f",((bitcoinsToEur + yuanToEur)-((bitcoinsToEur + yuanToEur)*commission)));
- }
- }
Add Comment
Please, Sign In to add comment