Idiomatically determine all the characters that can be used for symbols: Difference between revisions
Idiomatically determine all the characters that can be used for symbols (view source)
Revision as of 18:01, 26 May 2024
, 1 month ago→{{header|Wren}}: Iteration variable should be lower case,
(Added Ada) |
m (→{{header|Wren}}: Iteration variable should be lower case,) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 19:
=={{header|Ada}}==
{{works with|Ada|95
<syntaxhighlight lang="ada">
with Ada.Strings.Maps; use Ada.Strings.Maps;
Line 1,093:
<syntaxhighlight lang="wren">for (i in 97..122) System.write(String.fromByte(i))
for (i in 65..90) System.write(String.fromByte(i))
for (i in 48..57) System.write(String.fromByte(i))
System.print("_")</syntaxhighlight>
{{out}}
<pre>
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_
</pre>
|