Compare length of two strings: Difference between revisions

m
(Add Scala implementation)
Line 1,118:
</pre>
=={{header|C sharp|C#}}==
<syntaxhighlight lang="csharp">using System;
using System;
using System.Collections.Generic;
 
Line 1,163 ⟶ 1,164:
}
}
 
}
}
Line 1,169:
 
{{output}}
<pre>
<pre>"123456789" has length 9 and is the longest string
"1234567" has length 7 and is neither the longest nor the shortest string
"abcdef" has length 6 and is neither the longest nor the shortest string
5

edits