Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(step_by)]
- fn main() {
- for i in (1..).step_by(2).take(5) {
- println!("{}", i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement