Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Show-ASCII-table/Rust/show-ascii-table.rust
Normal file
13
Task/Show-ASCII-table/Rust/show-ascii-table.rust
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
fn main() {
|
||||
for i in 0u8..16 {
|
||||
for j in ((32+i)..128).step_by(16) {
|
||||
let k = (j as char).to_string();
|
||||
print!("{:3} : {:<3} ", j, match j {
|
||||
32 => "Spc",
|
||||
127 => "Del",
|
||||
_ => &k,
|
||||
});
|
||||
}
|
||||
println!();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue