Idiomatically determine all the lowercase and uppercase letters: Difference between revisions
Content added Content deleted
Alextretyak (talk | contribs) (Added 11l) |
(Added XPL0 example.) |
||
Line 877: | Line 877: | ||
for (i in 65..90) System.write(String.fromByte(i)) |
for (i in 65..90) System.write(String.fromByte(i)) |
||
System.print()</lang> |
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}} |
{{out}} |