Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ChangeBureau_01 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int bitcoin = Integer.parseInt(scanner.nextLine());
- double uana = Double.parseDouble(scanner.nextLine());
- double comission = Double.parseDouble(scanner.nextLine());
- double dolars = 1.76;
- double euro = 1.95;
- double bitcointToLeva = bitcoin*1168.0;
- double uanaToLeva = uana*(0.15*dolars);
- double comisionprocentige = comission*0.01;
- double ggg = bitcointToLeva+uanaToLeva;
- double fff = ggg/euro;
- double total = fff-fff*comisionprocentige;
- System.out.printf("%.2f",total);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement