Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ChangeBureau_01 {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         int bitcoin = Integer.parseInt(scanner.nextLine());
  8.         double uana = Double.parseDouble(scanner.nextLine());
  9.         double comission = Double.parseDouble(scanner.nextLine());
  10.  
  11.         double dolars = 1.76;
  12.         double euro = 1.95;
  13.         double bitcointToLeva = bitcoin*1168.0;
  14.         double uanaToLeva = uana*(0.15*dolars);
  15.         double comisionprocentige = comission*0.01;
  16.  
  17.         double ggg = bitcointToLeva+uanaToLeva;
  18.  
  19.         double fff = ggg/euro;
  20.  
  21.         double total = fff-fff*comisionprocentige;
  22.  
  23.         System.out.printf("%.2f",total);
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement