Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ChangeBureau {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- int bitcoinAmount = Integer.parseInt(scan.nextLine());
- int cnyAmount = Integer.parseInt(scan.nextLine());
- double komisionna = Double.parseDouble(scan.nextLine());
- double eur = 1.95;
- double usd = 1.76;
- double cny = 0.15 * usd;
- double bitcoin = 1168;
- double totalBgn = bitcoin * bitcoinAmount + cny * cnyAmount;
- double totalEur = (totalBgn / eur) * ((100 - komisionna)/100);
- System.out.printf("%.2f", totalEur);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement