World Cup group stage: Difference between revisions

m
Line 215:
=={{header|Elena}}==
{{trans|Java}}
ELENA 45.10 :
<lang elena>import system'routines;
import extensions;
Line 221:
public singleton program
{
static games := new string[]::({"12", "13", "14", "23", "24", "34")};
static results := "000000";
Line 238:
closure()
{
var points := new IntMatrix.allocate(4, 10);
int counter := 0;
do
{
var records := new int[]::({0,0,0,0)};
for(int i := 0, i < 6, i += 1)
Line 264:
}
}
while:(program.nextResult());
new Range(0, 4).zipForEach(new string[]::({"1st", "2nd", "3rd", "4th")}, (i,l)
{
console.printLine(l,": ", points[3 - i].toArray())
Anonymous user