Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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