Advertisement
GabrielHr00

01. USD to BGN

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