Advertisement
ralitsa_d

Untitled

Feb 8th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Pr01Money {
  4. public static void main(String[] args) {
  5. Scanner scan = new Scanner(System.in);
  6.  
  7. double bitcoins = Double.parseDouble(scan.nextLine());
  8. double yuans = Double.parseDouble(scan.nextLine());
  9. double commission = Double.parseDouble(scan.nextLine());
  10.  
  11. double sum = bitcoins * 1168 + (yuans * 0.15 * 1.76);
  12.  
  13. sum = (sum / 1.95) * (100 - commission) / 100;
  14.  
  15. System.out.printf("%.12f",sum);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement