galinyotsev123

ProgBasics02Simple-Operations-Y02USDtoBGN

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