Compare length of two strings: Difference between revisions
→{{header|GWBASIC}}
Line 357:
</syntaxhighlight>
{{out}}
The user enters a list of up to 10 strings
<pre>
Capture the string 1 (up to 10, Enter to finish)? abcd
Capture the string 2 (up to 10, Enter to finish)? 123456789
Capture the string 3 (up to 10, Enter to finish)? abcdef
Capture the string 4 (up to 10, Enter to finish)? 1234567
Capture the string 4 (up to 10, Enter to finish)?
You entered 4 strings. Lengths are as follows:
1. 123456789: 9 chars.
2. 1234567: 7 chars.
3. abcdef: 6 chars.
4. abcd: 4 chars.
End of program execution.
</pre>
|