Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Project: Exam_17_July_2016 - created by borkins on 2017-05-16.
- */
- import java.util.Scanner;
- public class _01_Money
- {
- public static void main(String[] args)
- {
- Scanner console = new Scanner(System.in);
- int bitcoins = Integer.parseInt(console.nextLine());
- double yuans = Double.parseDouble(console.nextLine());
- double commission = Double.parseDouble(console.nextLine());
- double leva = (bitcoins * 1168) + ((yuans * 0.15) * 1.76);
- double euros = (leva / 1.95);
- euros -= (euros * commission / 100);
- System.out.printf("%.2f%n", euros);
- }
- }
Add Comment
Please, Sign In to add comment