Idiomatically determine all the lowercase and uppercase letters: Difference between revisions
Idiomatically determine all the lowercase and uppercase letters (view source)
Revision as of 21:55, 11 December 2020
, 3 years agoAdded XPL0 example.
Alextretyak (talk | contribs) (Added 11l) |
(Added XPL0 example.) |
||
Line 877:
for (i in 65..90) System.write(String.fromByte(i))
System.print()</lang>
{{out}}
<pre>
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
</pre>
=={{header|XPL0}}==
<lang XPL0>char C;
[for C:= 0 to 255 do
if C >=^a & C<=^z then ChOut(0, C);
CrLf(0);
for C:= 0 to 255 do
if C >=^A & C<=^Z then ChOut(0, C);
CrLf(0);
]</lang>
{{out}}
|