Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Exercise_02/Exercise_02_01/Exercise_02_01.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void main(String[] args) {

// Prompt user to input a double
System.out.print("Enter a degree in Celsius: ");
double celsius = input.nextDouble();
double celsius = (double) input.nextLine();

// Convert Celsius to Fahrenheit
double fahrenheit = 9.0 / 5 * celsius + 32;
Expand Down