wraith-lang/euler001.w

18 lines
257 B
OpenEdge ABL
Raw Normal View History

2021-04-30 06:49:35 +00:00
struct Program
{
static Main(): int
{
sum: int = 0;
2021-04-30 06:49:35 +00:00
for (i: int in [1..1000])
2021-04-30 06:49:35 +00:00
{
if ((i % 3 == 0) || (i % 5 == 0))
{
sum = sum + i;
}
}
return sum;
}
}