Compare length of two strings: Difference between revisions
m
→{{header|C sharp|C#}}
(Add Scala implementation) |
RandomTask (talk | contribs) |
||
Line 1,118:
</pre>
=={{header|C sharp|C#}}==
<syntaxhighlight lang="csharp">
using System;
using System.Collections.Generic;
Line 1,163 ⟶ 1,164:
}
}
}
}
Line 1,169:
{{output}}
<pre>
"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
|