Middle three digits: Difference between revisions
Content deleted Content added
Line 1,787:
</pre>
=={{header|Elena}}==
ELENA
<lang elena>import system'routines
import extensions
middleThreeDigits(int n)
{
int len := s
if(len<3)
InvalidArgumentException
else if(len
InvalidArgumentException
int mid := len / 2
^ s
}
public program()
{
.forEach
{{out}}
<pre>
|