From d4bf0cdd8a38b8ca5695cee6dce842b62eef8a6f Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Tue, 28 Jul 2026 21:15:42 +0300 Subject: [PATCH 1/2] addd comments to blocks --- source/ch4_conditionals.ptx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index 0b32d00..9cc307e 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!") @@ -31,7 +31,7 @@ if score >= 90: public class SimpleIfExample { public static void main(String[] args) { int score = 70; - if (score <= 70) { + if (score <= 70) { // Note the parentheses and curly braces System.out.println("Needs work!"); } } From 8f4791ef78285ccde3cf0814bb0c8c2dc89e08e1 Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Tue, 28 Jul 2026 21:17:04 +0300 Subject: [PATCH 2/2] made the two conditions the same --- source/ch4_conditionals.ptx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index 9cc307e..052be65 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -30,9 +30,9 @@ if score >= 90: # Note the colon at the end of the line public class SimpleIfExample { public static void main(String[] args) { - int score = 70; - if (score <= 70) { // Note the parentheses and curly braces - System.out.println("Needs work!"); + int score = 95; + if (score >= 90) { // Note the parentheses and curly braces + System.out.println("Excellent work!"); } } }