Write language name in 3D ASCII: Difference between revisions
Content added Content deleted
m ({{Out}} / moved Category to top) |
(Nimrod -> Nim) |
||
Line 1,367: | Line 1,367: | ||
</pre> |
</pre> |
||
=={{header| |
=={{header|Nim}}== |
||
{{trans|Python}} |
{{trans|Python}} |
||
<lang |
<lang nim>import strutils |
||
const |
const nim = """ |
||
# # ##### # # #### #### #### |
# # ##### # # #### #### #### |
||
## # # ## ## # # # # # # |
## # # ## ## # # # # # # |
||
Line 1,379: | Line 1,379: | ||
# # ##### # # # # #### ####""" |
# # ##### # # # # #### ####""" |
||
let lines = |
let lines = nim.replace("#", "<<<").replace(" ", "X").replace("X", " ").replace("\n", " Y").replace("< ", "<>").split('Y') |
||
for i, l in lines: |
for i, l in lines: |
||
echo repeatChar((lines.len - i) * 3), l</lang> |
echo repeatChar((lines.len - i) * 3), l</lang> |