Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Money {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- int bitcoin = Integer.parseInt(scan.nextLine());
- double yuans = Double.parseDouble(scan.nextLine());
- double commission = Double.parseDouble(scan.nextLine()) / 100;
- double bitcoinToLeva = bitcoin * 1168;
- double yuansToDollar = yuans * 0.15;
- double dollarToLeva = yuansToDollar * 1.76;
- double leva = bitcoinToLeva + dollarToLeva;
- double euro = leva / 1.95;
- euro -= commission * euro;
- System.out.println(euro);
- }
- }
Add Comment
Please, Sign In to add comment