Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust for loop

#![allow(unused)]
fn main() {
let mut i = 0;

while i < 10 {
    println!("hello");
    i = i + 1;
}
}
Source by doc.rust-lang.org #
 
PREVIOUS NEXT
Tagged: #rust #loop
ADD COMMENT
Topic
Name
2+4 =