Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class PoundsToDollars {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double britishPounds = Double.parseDouble(scanner.nextLine());
- double dollars = britishPounds * 1.31;
- System.out.printf("%.3f", dollars);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment