From 0e447c7956410a993614f9337d6219e017722443 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 9 Dec 2022 22:07:01 +0000 Subject: 001-024 complete --- exercises/014_while4.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/014_while4.zig') diff --git a/exercises/014_while4.zig b/exercises/014_while4.zig index 95aecb0..8ca68aa 100644 --- a/exercises/014_while4.zig +++ b/exercises/014_while4.zig @@ -18,7 +18,7 @@ pub fn main() void { // Oh dear! This while loop will go forever?! // Please fix this so the print statement below gives the desired output. while (true) : (n += 1) { - if (???) ???; + if (n >= 4) break; } // Result: we want n=4 -- cgit v1.2.3-ZIG