Idiomatically determine all the lowercase and uppercase letters: Difference between revisions

Added S-BASIC example
(Jakt)
(Added S-BASIC example)
Line 1,252:
Uppercase letters: ABCDEFGHIJKLMNOPQRSTUVWXYZ
</pre>
 
=={{header|S-BASIC}}==
S-BASIC has been implemented only for computers using the Z80 CPU and the CP/M operating system and only
supports the ASCII character set. In S-BASIC, BYTE is equivalent to CHAR, and variables declared as such
may be treated in most contexts simply as small integers, avoiding the necessity of conversion functions
such as ASC() and CHR$() needed in many other BASIC dialects (though S-BASIC does support them also).
<syntaxhighlight lang = "BASIC")>
comment
An S-BASIC solution to the Rosetta Code task calling for
an idiomatic generation of upper and lower case alphabets.
end
 
var c = byte
print "Upper Case: ";
for c = 'A' to 'Z'
print c;
next c
print
print "Lower Case: ";
for c = 'a' to 'z'
print c;
next c
print
 
end
</syntaxhighlight>
{{out}}
<pre>
Upper Case: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Lower Case: abcdefghijklmnopqrstuvwxyz
</pre>
 
 
=={{header|Scala}}==
211

edits