diff --git a/2-variables/10-club-penguin.java b/2-variables/10-club-penguin.java index 132efd0..66b478c 100644 --- a/2-variables/10-club-penguin.java +++ b/2-variables/10-club-penguin.java @@ -11,11 +11,12 @@ public static void main(String[] args) { System.out.print("Welcome to the Club Penguin money converter!"); System.out.print("How many coins do you have? "); - int coins = scanner.nextInt(); + double coins = scanner.nextDouble(); - double dollars = coins * exchangeRate; + double dollars; + dollars = coins * exchangeRate; System.out.println("You have the following amount of dollars:"); System.out.println(dollars); } -} \ No newline at end of file +}