Advertisement
cwchen

[Rust] while demo

Aug 22nd, 2017
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. fn main() {
  2. let mut count = 10;
  3.  
  4. while count > 0 {
  5. println!("Count down {}", count);
  6. count -= 1;
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement