Advertisement
cwchen

[Rust] for loop demo

Aug 22nd, 2017
605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.10 KB | None | 0 0
  1. fn main() {
  2.     // Iterate from 1 to 10
  3.     for i in 1..(10+1) {
  4.         println!("{}", i);
  5.     }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement