From 2ad17352622e4d77f760a3b2e0c4bb3ef4960e69 Mon Sep 17 00:00:00 2001 From: lalmendra <109772135+lalmendra@users.noreply.github.com> Date: Fri, 2 Oct 2026 03:46:00 -0300 Subject: [PATCH] Improve challenge 4 output To avoid not printing anything, as the loop starts at 0 and 0 % 3 is 0, make the loop start a 1 so at least 1 and 2 will be printed before breaking the loop. --- src/loops/challenges.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loops/challenges.md b/src/loops/challenges.md index f70f187b..600fe5c3 100644 --- a/src/loops/challenges.md +++ b/src/loops/challenges.md @@ -62,7 +62,7 @@ What will this program output when run? Write down your guess and then try runni ```java,editable void main() { - int x = 0; + int x = 1; while (x < 10) { if (x % 3 == 0) { break;