YavorGrancharov

Money

Dec 17th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Money {
  3.     public static void main(String[] args) {
  4.         Scanner console = new Scanner(System.in);
  5.         int bitcoin = Integer.parseInt(console.nextLine());
  6.         double yuan = Double.parseDouble(console.nextLine());
  7.         double commission = Double.parseDouble(console.nextLine());
  8.         double sum = (bitcoin * 598.97435897) + (yuan * 0.1353846);
  9.         double sum2 = sum - (sum * commission / 100);
  10.         System.out.println(sum2);
  11.     }
  12. }
Add Comment
Please, Sign In to add comment