Created
July 15, 2015 17:04
-
-
Save benaryorg/3a6b72feaf144a5b663a to your computer and use it in GitHub Desktop.
writes the alphabet, each line shifted one character left
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() | |
{ | |
for win in (0u32..26*8).collect::<Vec<_>>().windows(80) | |
{ | |
for i in win | |
{ | |
print!("{}",(('a' as u8)+((i%26u32) as u8)) as char); | |
} | |
println!(""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment