Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main(){ // A program always starts from main
- for i in 1..=100{ // The variable `i` will take value from 1 to 100, both included
- print!("{} ", i); // For each value `i`, print it, followed by a blank space
- }
- println!(); // Print a newline
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement