Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Practice {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner scan = new Scanner(System.in);
  7.         final double value = 3.67;
  8.         double dollars, NIS;
  9.         System.out.println("Enter your amount of money in dollars: ");
  10.         dollars = scan.nextDouble();
  11.         NIS = dollars * value;
  12.         System.out.println("Your amount of money in NIS is: " + NIS);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement