Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Show-ASCII-table/Ecstasy/show-ascii-table.ecstasy
Normal file
14
Task/Show-ASCII-table/Ecstasy/show-ascii-table.ecstasy
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
module ShowAsciiTable {
|
||||
@Inject Console console;
|
||||
void run() {
|
||||
for (Int offset : 0..<16) {
|
||||
for (Int ascii = 32+offset; ascii < 128; ascii += 16) {
|
||||
console.print($|{ascii.toString().rightJustify(3)}/\
|
||||
|{ascii.toByte().toByteArray()}: \
|
||||
|{new Char(ascii).quoted().leftJustify(5)}
|
||||
, suppressNewline=True);
|
||||
}
|
||||
console.print();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue