Rust Even Numbers
Published 361d ago
nptester
Print even numbers in Rust
fn main() {
for i in 0..10 {
if i % 2 == 0 {
println!("{}", i);
}
}
}
loopeven numbersRust
Please login or sign up to comment and collaborate