langs a-z

This commit is contained in:
Ingy döt Net 2013-04-10 22:43:41 -07:00
parent db842d013d
commit d066446780
11389 changed files with 98361 additions and 1020 deletions

View file

@ -0,0 +1 @@
for (i = 10; i >= 0; i--) {WriteLine($"$i")}

View file

@ -0,0 +1 @@
foreach (i in [10, 9 .. 0]) {WriteLine($"$i")}

View file

@ -0,0 +1,9 @@
/* NetRexx */
options replace format comments java crossref savelog symbols nobinary
say
say 'Loops/Downward for'
loop i_ = 10 to 0 by -1
say i_.right(2)
end i_

View file

@ -0,0 +1,3 @@
for i = 10 downto 0 do
Printf.printf "%d\n" i
done

View file

@ -0,0 +1,3 @@
FOR i := 10 TO 0 BY -1 DO
Out.Int(i,0);
END;

View file

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

View file

@ -0,0 +1,3 @@
for i = 10:-1:0
% ...
endfor

View file

@ -0,0 +1,3 @@
for I in 10..0;~1 do
{Show I}
end

View file

@ -0,0 +1 @@
forstep(n=10,0,-1,print(n))

View file

@ -0,0 +1,3 @@
do i = 10 to 0 by -1;
put skip list (i);
end;

View file

@ -0,0 +1,2 @@
for i := 10 downto 0 do
writeln(i);

View file

@ -0,0 +1,3 @@
for 10 ... 0 {
.say;
}

View file

@ -0,0 +1,5 @@
int main(){
for(int i = 10; i >= 0; i--){
write(i + "\n");
}
}

View file

@ -0,0 +1,4 @@
lvars i;
for i from 10 by -1 to 0 do
printf(i, '%p\n');
endfor;

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,3 @@
For i=10 To 0 Step -1
Debug i
Next

View file

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

View file

@ -0,0 +1 @@
11 [ putn space ] iterd

View file

@ -0,0 +1,2 @@
for (x; 10; x >= 0; -1)
x!;

View file

@ -0,0 +1,3 @@
for i range 10 downto 0 do
writeln(i);
end for;

View file

@ -0,0 +1 @@
10 downTo: 1 do: [| :n | print: n]

View file

@ -0,0 +1,3 @@
:For(I,10,0,1)
:Disp I
:End

View file

@ -0,0 +1,4 @@
Local i
For i, 10, 0, 1
Disp i
EndFor

View file

@ -0,0 +1,4 @@
$$ MODE TUSCRIPT
LOOP n=10,0,-1
PRINT n
ENDLOOP

View file

@ -0,0 +1 @@
10 inc iota reverse [print] each

View file

@ -0,0 +1 @@
10 [dup print dec] [dup 0 >=] while drop

View file

@ -0,0 +1,5 @@
i=10
while test $i -ge 0; do
echo $i
i=`expr $i - 1`
done

View file

@ -0,0 +1,3 @@
for(( Z=10; Z>=0; Z-- )); do
echo $Z
done

View file

@ -0,0 +1,3 @@
for i in `jot - 10 0 -1`; do
echo $i
done

View file

@ -0,0 +1,6 @@
for i in `seq 10 -1 0`; do
echo $i
done
# or better yet
seq 10 -1 0

View file

@ -0,0 +1,3 @@
yes '' | cat -n | head -n 11 | while read n; do
expr $n - 1
done | tail -r

View file

@ -0,0 +1,4 @@
10
[0 >]
[dup puts pred]
while

View file

@ -0,0 +1,3 @@
for (#1 = 10; #1 >= 0; #1--) {
Num_Type(#1)
}

View file

@ -0,0 +1,3 @@
For i = 10 To 0 Step -1
Console.WriteLine(i)
Next

View file

@ -0,0 +1,4 @@
include c:\cxpl\codes; \intrinsic 'code' declarations
int I;
for I:= 10 downto 0 do
[IntOut(0, I); CrLf(0)]

View file

@ -0,0 +1,3 @@
10 FOR l = 10 TO 0 STEP -1
20 PRINT l
30 NEXT l