Advertisement
OlegB

H_W_03

Mar 1st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. package com.company;
  2.  
  3. /**
  4.  * Created by Oleg on 01.03.2017.
  5.  */
  6. public class Currency {
  7.     public static void main(String[] args) {
  8.         float Currency = 5000;
  9.         float USD = 27.291f;
  10.         float EUR = 28.953f;
  11.         float RUB = 0.474f;
  12.         float GBP = 34.105f;
  13.         System.out.println("In USD you have = " + Currency / USD);
  14.         System.out.println("In EUR you have = " + Currency / EUR);
  15.         System.out.println("In RUB you have = " + Currency / RUB);
  16.         System.out.println("In GBP you have = " + Currency / GBP);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement