_Maximilian_

Парички

Jan 20th, 2020 (edited)
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.27 KB | None | 0 0
  1.     package Money;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class homework{
  6.      public static void main(String[] args) {
  7.            Scanner console = new Scanner(System.in);
  8.            System.out.println("bitcoin = ");
  9.            double bitcoin = Double.parseDouble(console.nextLine());
  10.            double euro = bitcone * 1168 / 1.95;
  11.            System.out.println("euro = ");
  12.            System.out.println(euro);
  13.      }
  14. }
  15.  
  16.     package Money;
  17.  
  18. import java.util.Scanner;
  19.  
  20. public class homework{
  21.      public static void main(String[] args) {
  22.            Scanner console = new Scanner(System.in);
  23.            System.out.println("chineseyuan = ");
  24.            double chimeseyuan = Double.parseDouble(console.nextLine());
  25.            double euro = chineseyuan * 11.7 / 1.95;
  26.            System.out.println("euro = ");
  27.            System.out.println(euro);
  28.      }
  29. }
  30.     package Money;
  31.  
  32. import java.util.Scanner;
  33.  
  34. public class homework{
  35.      public static void main(String[] args) {
  36.            Scanner console = new Scanner(System.in);
  37.            System.out.println("dollar = ");
  38.            double dollar = Double.parseDouble(console.nextLine());
  39.            double euro = dollar * 1/76 / 1.95;
  40.            System.out.println("euro = ");
  41.            System.out.println(euro);
  42.      }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment