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 bitcoins = Integer.parseInt(scanner.nextLine());
- double chinese = Double.parseDouble(scanner.nextLine());
- double comission = Double.parseDouble(scanner.nextLine());
- double bitcoinsInLeva = bitcoins * 1168;
- double chineseInLeva = chinese * 0.15 * 1.76;
- double sumInLeva = bitcoinsInLeva + chineseInLeva;
- double comissionInLeva = (comission * sumInLeva) / 100;
- double resultInEuro = (sumInLeva - comissionInLeva) / 1.95;
- System.out.printf("%.2f", resultInEuro);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement