Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. //Print Odd Number
  2. 'outer: for x in 0..10 {
  3. 'inner: for y in 0..10 {
  4. if x % 2 == 0 { continue 'outer; } // continues the loop over x
  5. if y % 2 == 0 { continue 'inner; } // continues the loop over y
  6. println!("x: {}, y: {}", x, y);
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement