Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class p18_Money {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int bitcoins = Integer.parseInt(scanner.nextLine());
- double chu = Double.parseDouble(scanner.nextLine());
- double commission = Double.parseDouble(scanner.nextLine());
- double n1 = bitcoins * 1168;
- double n2 = (chu * 1.76) * 0.15;
- double n3 = (n1 + n2) / 1.95;
- double n4 = n3 * (commission / 100);
- double result = n3 - n4;
- System.out.printf("%.2f", result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement