Expressions and starting flow control in RBE

This commit is contained in:
2023-09-26 06:43:22 -04:00
parent 505e04613f
commit 7204f08177
7 changed files with 122 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
fn main() {
let mut n = 1;
while n < 101 {
if n % 15 == 0 {
println!("fizzbuzz");
} else if n % 3 == 0 {
println!("fizz");
} else if n % 5 == 0 {
println!("buzz");
} else {
println!("{}", n);
}
n += 1;
}
}