MilaDimitrovaa

Money

Oct 18th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1.     public static void main(String[] args) {
  2.         Scanner scan = new Scanner(System.in);
  3.         int Bitcoin = scan.nextInt();
  4.         double kityuan = scan.nextDouble();
  5.         double commission= scan.nextDouble()/100;
  6.         double BitcointoLeva = Bitcoin*1168;
  7.         double kityuantousd= kityuan*0.15;
  8.         double kityuantoLeva=kityuantousd * 1.76;
  9.         double euro = (BitcointoLeva + kityuantoLeva) / 1.95 - ((BitcointoLeva + kityuantoLeva)/ 1.95*commission);
  10.         System.out.println(euro);
  11.        
  12.                
  13.    
  14.     }
  15.  
  16. }
Add Comment
Please, Sign In to add comment