forked from zig/exercises
014 ✅
This commit is contained in:
parent
95083a8c34
commit
fc818d088d
|
@ -18,7 +18,7 @@ pub fn main() void {
|
||||||
// Oh dear! This while loop will go forever?!
|
// Oh dear! This while loop will go forever?!
|
||||||
// Please fix this so the print statement below gives the desired output.
|
// Please fix this so the print statement below gives the desired output.
|
||||||
while (true) : (n += 1) {
|
while (true) : (n += 1) {
|
||||||
if (???) ???;
|
if (n == 4) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Result: we want n=4
|
// Result: we want n=4
|
||||||
|
|
Loading…
Reference in New Issue
Block a user