Skip to content

Instantly share code, notes, and snippets.

@chamakits
Forked from anonymous/playground.rs
Created October 28, 2015 05:50
Show Gist options
  • Save chamakits/0ef13ede515319801bbb to your computer and use it in GitHub Desktop.
Save chamakits/0ef13ede515319801bbb 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