-
-
Save rust-play/5e2fece6c7253ea1eff5f1b95703a754 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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 print_moon_phases() { | |
let moon_phases = [ | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
"ππππππππππππ", | |
]; | |
for line in moon_phases.iter() { | |
println!("{}", line); | |
} | |
} | |
fn main() { | |
print_moon_phases(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment