Member-only story
Rust Challenge: Fizzy
Learning Rust Through Small Challenges
In this mini Rust challenges, we will solve a problem using Rust. The goal of these challenges is to get comfortable reading and writing Rust code by solving various problems.
I do them on a daily basis, so if you want to join please come back here every day and check every challenge and lets us solve them together.
Challenge
These challenges are based on exercises from Exercism. You can find the original challenge and more on their platform below.
Instructions
FizzBuzz is a children’s game of counting through the integers. For each of them, if it’s divisible by three, substitute the word “fizz”; if divisible by five, substitute “buzz”; if both, say both; if neither, say the number. It is not particularly difficult to implement, though it enjoyed some popularity for a time as a quick way to tell whether entry-level programming applicants knew how to program at all.