Advertisement
rozalina1988

USDtoBGN

Oct 9th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. package FirstStepsInCoding.Exercises;
  2.  
  3.  
  4. import java.util.Scanner;
  5.  
  6. public class USDtoBGN {
  7.     public static void main(String[] args){
  8.         Scanner scanne = new Scanner(System.in);
  9.         double usd = Double.parseDouble(scan.nextLine());
  10.         double bgn = usd * 1.79549;
  11.         System.out.println(bgn);
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement