a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
23 lines
300 B
C#
23 lines
300 B
C#
using System.Collections.Generic;
|
|
|
|
class X
|
|
{
|
|
public IEnumerable<int> Test (int a, long b)
|
|
{
|
|
while (a < b) {
|
|
a++;
|
|
yield return a;
|
|
}
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
X x = new X ();
|
|
int sum = 0;
|
|
foreach (int i in x.Test (3, 8L))
|
|
sum += i;
|
|
|
|
return sum == 30 ? 0 : 1;
|
|
}
|
|
}
|