Advertisement
Krassi_Daskalova

ChangeBureau

Jan 26th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ChangeBureau {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6. int bitkoins = Integer.parseInt(scanner.nextLine());
  7. double chinaIuan = Double.parseDouble(scanner.nextLine());
  8. double comission = Double.parseDouble(scanner.nextLine());
  9.  
  10. double sumEuro = (bitkoins * 1168 / 1.95 + chinaIuan * 26.4 / 195) -
  11. (bitkoins * 1168 / 1.95 + chinaIuan * 26.4 / 195) * comission / 100;
  12. System.out.printf("%.2f", sumEuro);
  13.  
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement