Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,3 @@
for I in reverse 0..10 loop
Put_Line(Integer'Image(I));
end loop;

View file

@ -0,0 +1,14 @@
identification division.
program-id. countdown.
environment division.
data division.
working-storage section.
01 counter pic 99.
88 counter-done value 0.
01 counter-disp pic Z9.
procedure division.
perform with test after varying counter from 10 by -1 until counter-done
move counter to counter-disp
display counter-disp
end-perform
stop run.

View file

@ -0,0 +1,2 @@
for i in 1..10 by -1 do
writeln(i);

View file

@ -0,0 +1,2 @@
var r = 1..10;
for i in r by -1 do { ... }

View file

@ -0,0 +1,3 @@
for i = 10 to 0 by -1 do
? i
end for

View file

@ -0,0 +1,22 @@
class Step {
var end:Int;
var step:Int;
var index:Int;
public inline function new(start:Int, end:Int, step:Int) {
this.index = start;
this.end = end;
this.step = step;
}
public inline function hasNext() return step > 0 ? end >= index : index >= end;
public inline function next() return (index += step) - step;
}
class Main {
static function main() {
for (i in new Step(10, 0, -1)) {
Sys.print('$i ');
}
}
}

View file

@ -0,0 +1,3 @@
for (int i = 10; i >= 0; i--) {
println i
}

View file

@ -0,0 +1 @@
11.each{ println 10 - it }

View file

@ -0,0 +1 @@
print 11.map{ "${10 - it}\n" }.join()

View file

@ -0,0 +1,7 @@
HAI 1.3
IM IN YR DOWNLOOP NERFIN YR N TIL BOTH SAEM N AN -11
VISIBLE SUM OF N AN 10
IM OUTTA YR DOWNLOOP
KTHXBYE

View file

@ -0,0 +1,3 @@
for ($i = 10; $i -ge 0; $i--) {
$i
}

View file

@ -0,0 +1 @@
10..0

View file

@ -0,0 +1 @@
for i 10 0 -1 [print i]