Created
August 3, 2018 13:21
-
-
Save bhavya411/274981a7b3a7b19a6b94f6bccb78a99f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let a = [10, 20, 30, 40, 50]; | |
for element in a.iter() { | |
println!("the value is: {}", element); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment