Generate lower case ASCII alphabet: Difference between revisions
Generate lower case ASCII alphabet (view source)
Revision as of 19:39, 24 January 2019
, 5 years agono edit summary
(Use `b'a'` instead of `'a' as u8`, put .map on a new line to shorten line length and replace _ with `char`) |
No edit summary |
||
Line 270:
NEXT
END</lang>
==={{header|BASIC256}}===
<lang basic256>
# generate lowercase ascii alphabet
# basic256 1.1.4.0
dim a$(27) # populating array for possible future use
for i = 1 to 26
a$[i] = chr(i + 96)
print a$[i] + " ";
next i
</lang>
{{out}}
<pre>
a b c d e f g h i j k l m n o p q r s t u v w x y z
</pre>
==={{header|Commodore BASIC}}===
|