Advertisement
Guest User

02. Pounds to Dollars

a guest
Jan 21st, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7. public static void main(String[] args) {
  8. Scanner scan = new Scanner(System.in);
  9.  
  10. int pounds = Integer.parseInt(scan.nextLine());
  11. double dollars = pounds * 1.31;
  12. System.out.printf("%.3f", dollars);
  13.  
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement