Zig NEWS

loading...

Discussion on: Fizz Buzz

Collapse
gonzus profile image
Gonzalo Diethelm

May I suggest you write the loop as while (count <= 100) ...? This way, you have one less magic number (101) and it is blindingly obvious you are looping to 100 inclusive.

Cheers!

Collapse
sobeston profile image
Sobeston Author

That's a fair improvement, I've updated it.