SHARE
TWEET

convertor bitcoin

BoyanGyurov Oct 23rd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package money;
  2. import java.util.Scanner;
  3.  
  4. public class money {
  5.  
  6.     public static void main(String[] args) {
  7.         Scanner value = new Scanner(System.in);
  8.         double bitcoin = value.nextDouble();
  9.         double yen = value.nextDouble();
  10.        
  11.         double percent = value.nextDouble();
  12.         double commision = percent/100;
  13.        
  14.         double euroToLev = 1.95;
  15.        
  16.         double bitcoinToLev = 1168;
  17.         double bitcoinToEuro = bitcoinToLev / euroToLev;
  18.        
  19.         double dolarToLev = 1.76;
  20.    
  21.        
  22.         double yenToDolar = 0.15;
  23.         double yenToLev = (yen *yenToDolar)* dolarToLev;
  24.         double yenToEuro = yenToLev/1.95;
  25.        
  26.         double finalEuro = (bitcoinToEuro*bitcoin) + yenToEuro;
  27.         System.out.println("Euros:" +  finalEuro *commision);
  28.  
  29.     }
  30.  
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top