Skip to content

Instantly share code, notes, and snippets.

Created October 28, 2015 05:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/f9f10c2a80b923c8d939 to your computer and use it in GitHub Desktop.
Save anonymous/f9f10c2a80b923c8d939 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
// open.rs
use std::error::Error;
use std::fs::File;
use std::io::prelude::*;
use std::path::Path;
use std::char;
fn main() {
let a = 'a' as u32;
let outer = 25;
let inner = 25;
for i in 0..outer {
for j in 0..inner {
print!("AAA{}{}BBB", char::from_u32(i+a).unwrap(), char::from_u32(j+a).unwrap());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment