Advertisement
yovkovbpfps

Simple Operation and Calculation USD TO BGN

Apr 19th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class USDtoBGN {
  3. public static void main(String[] args) {
  4. Scanner scanner = new Scanner(System.in);
  5. double usd = Double.parseDouble(scanner.nextLine());
  6.  
  7. double bgn = usd * 1.79549;
  8.  
  9. System.out.printf("%.2f", bgn);
  10.  
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement