Skip to content

Instantly share code, notes, and snippets.

View ytitov's full-sized avatar

Yuri Titov ytitov

View GitHub Profile
fn main() {
for n in 1..=100 {
let div_by_3 = n % 3 == 0;
let div_by_5 = n % 5 == 0;
match (div_by_3, div_by_5) {
(true, false) => {
println!("Crackle");
},
(false, true) => {
println!("Pop");