Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Coins {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int bitcoins = Integer.parseInt(sc.nextLine());
- double uans = Double.parseDouble(sc.nextLine());
- double comm = Double.parseDouble(sc.nextLine());
- double bitcoinLeva = bitcoins*1168;
- double uani = uans*0.15;
- double uaniLeva = uani*1.76;
- double sum = ((bitcoinLeva+uaniLeva)/1.95);
- double commi = (sum*comm)/100;
- double result = sum-commi;
- System.out.printf("%.2f", result);
- }
- }
Add Comment
Please, Sign In to add comment