Compare length of two strings: Difference between revisions
Content added Content deleted
Line 205: | Line 205: | ||
compare_and_report_length(A, B) |
compare_and_report_length(A, B) |
||
print()</lang> |
print()</lang> |
||
{{out}} |
|||
Naive |
|||
"I am string" has length 11 and is shorter |
|||
"I am string too" has length 15 and is longer |
|||
Sophisticated |
|||
"I am string" has length 11 and is not the longest string |
|||
"I am string too" has length 15 and is the longest string |
|||
=={{header|Raku}}== |
=={{header|Raku}}== |