diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx
index 0b32d00..052be65 100644
--- a/source/ch4_conditionals.ptx
+++ b/source/ch4_conditionals.ptx
@@ -19,7 +19,7 @@
score = 95
-if score >= 90:
+if score >= 90: # Note the colon at the end of the line
print("Excellent work!")
@@ -30,9 +30,9 @@ if score >= 90:
public class SimpleIfExample {
public static void main(String[] args) {
- int score = 70;
- if (score <= 70) {
- System.out.println("Needs work!");
+ int score = 95;
+ if (score >= 90) { // Note the parentheses and curly braces
+ System.out.println("Excellent work!");
}
}
}