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 scanner = new Scanner(System.in);
- int bitkoins = Integer.parseInt(scanner.nextLine());
- double chinaIuan = Double.parseDouble(scanner.nextLine());
- double comission = Double.parseDouble(scanner.nextLine());
- double sumEuro = (bitkoins * 1168 / 1.95 + chinaIuan * 26.4 / 195) -
- (bitkoins * 1168 / 1.95 + chinaIuan * 26.4 / 195) * comission / 100;
- System.out.printf("%.2f", sumEuro);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement