mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
21 lines
No EOL
254 B
C#
21 lines
No EOL
254 B
C#
using System;
|
|
|
|
class ConsoleDrv
|
|
{
|
|
static int Main()
|
|
{
|
|
return TheTest(3) == 3 ? 0 : 1;
|
|
}
|
|
|
|
public static int TheTest(int aValue)
|
|
{
|
|
for(int i = 0; i < 5; i++)
|
|
{
|
|
if(i == aValue)
|
|
{
|
|
return i;
|
|
}
|
|
}
|
|
return -1;
|
|
}
|
|
} |