Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class uprajnenie {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int bitcoins = Integer.parseInt(scanner.nextLine());
- double yuan = Double.parseDouble(scanner.nextLine());
- double commissionPercentage = Double.parseDouble(scanner.nextLine());
- double bitcoinsToLv = bitcoins * 1168;
- double yuanToLv = yuan * 0.15 * 1.76;
- double totalLv = bitcoinsToLv + yuanToLv;
- double euro = totalLv / 1.95;
- double commission = (euro / 100) * commissionPercentage;
- double moneyLeft = euro - commission;
- System.out.printf("%.2f", moneyLeft);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement