Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
3
Task/Loops-Downward-for/Axe/loops-downward-for.axe
Normal file
3
Task/Loops-Downward-for/Axe/loops-downward-for.axe
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
For(I,0,10)
|
||||
Disp 10-I▶Dec,i
|
||||
End
|
||||
3
Task/Loops-Downward-for/Ceylon/loops-downward-for.ceylon
Normal file
3
Task/Loops-Downward-for/Ceylon/loops-downward-for.ceylon
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for (i in 10..0) {
|
||||
print(i);
|
||||
}
|
||||
3
Task/Loops-Downward-for/ERRE/loops-downward-for.erre
Normal file
3
Task/Loops-Downward-for/ERRE/loops-downward-for.erre
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
FOR I%=10 TO 0 STEP -1 DO
|
||||
PRINT(I%)
|
||||
END FOR
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(for ((longtemps-je-me-suis-couché-de-bonne-heure (in-range 10 -1 -1)))
|
||||
(write longtemps-je-me-suis-couché-de-bonne-heure))
|
||||
→ 10 9 8 7 6 5 4 3 2 1 0
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
For i As Integer = 10 To 0 Step -1
|
||||
Print i; " ";
|
||||
Next
|
||||
Print
|
||||
Sleep
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
include "ConsoleWindow"
|
||||
|
||||
dim as long i
|
||||
|
||||
for i = 10 to 0 step -1
|
||||
print i
|
||||
next
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
FOR i := 10 TO 0 STEP -1
|
||||
? i
|
||||
NEXT
|
||||
1
Task/Loops-Downward-for/Lasso/loops-downward-for.lasso
Normal file
1
Task/Loops-Downward-for/Lasso/loops-downward-for.lasso
Normal file
|
|
@ -0,0 +1 @@
|
|||
loop(-from=10, -to=0, -by=-1) => {^ loop_count + ' ' ^}
|
||||
3
Task/Loops-Downward-for/Lingo/loops-downward-for.lingo
Normal file
3
Task/Loops-Downward-for/Lingo/loops-downward-for.lingo
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
repeat with i = 10 down to 0
|
||||
put i
|
||||
end repeat
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
local x=10
|
||||
repeat for 10 times
|
||||
put x & return
|
||||
add -1 to x
|
||||
end repeat
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
repeat with n=10 down to 1
|
||||
put n
|
||||
end repeat
|
||||
1
Task/Loops-Downward-for/Nim/loops-downward-for.nim
Normal file
1
Task/Loops-Downward-for/Nim/loops-downward-for.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
for x in countdown(10,0): echo(x)
|
||||
1
Task/Loops-Downward-for/Oforth/loops-downward-for.oforth
Normal file
1
Task/Loops-Downward-for/Oforth/loops-downward-for.oforth
Normal file
|
|
@ -0,0 +1 @@
|
|||
10 0 -1 step: i [ i println ]
|
||||
|
|
@ -0,0 +1 @@
|
|||
<@ ITEFORLITLITLITLIT>0|<@ SAYVALFOR>...</@>|10|-1</@>
|
||||
|
|
@ -0,0 +1 @@
|
|||
<# 迭代迭代次数字串字串字串字串>0|<# 显示值迭代次数>...</#>|10|-1</#>
|
||||
3
Task/Loops-Downward-for/Phix/loops-downward-for.phix
Normal file
3
Task/Loops-Downward-for/Phix/loops-downward-for.phix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for i=10 to 0 by -1 do
|
||||
?i
|
||||
end for
|
||||
1
Task/Loops-Downward-for/Ring/loops-downward-for.ring
Normal file
1
Task/Loops-Downward-for/Ring/loops-downward-for.ring
Normal file
|
|
@ -0,0 +1 @@
|
|||
for i = 10 to 0 step -1 see i + nl next
|
||||
19
Task/Loops-Downward-for/SSEM/loops-downward-for.ssem
Normal file
19
Task/Loops-Downward-for/SSEM/loops-downward-for.ssem
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
10001000000000100000000000000000 0. -17 to c
|
||||
11001000000001100000000000000000 1. c to 19
|
||||
11001000000000100000000000000000 2. -19 to c
|
||||
01001000000000010000000000000000 3. Sub. 18
|
||||
00010000000001100000000000000000 4. c to 8
|
||||
01001000000000100000000000000000 5. -18 to c
|
||||
11001000000001100000000000000000 6. c to 19
|
||||
11001000000000100000000000000000 7. -19 to c
|
||||
00000000000000000000000000000000 8. generated at run time
|
||||
11110000000000010000000000000000 9. Sub. 15
|
||||
01001000000001100000000000000000 10. c to 18
|
||||
11110000000000010000000000000000 11. Sub. 15
|
||||
00000000000000110000000000000000 12. Test
|
||||
00001000000000000000000000000000 13. 16 to CI
|
||||
00000000000001110000000000000000 14. Stop
|
||||
10000000000000000000000000000000 15. 1
|
||||
11111111111111111111111111111111 16. -1
|
||||
00000100000001100000000000000000 17. c to 32
|
||||
01010000000000000000000000000000 18. 10
|
||||
3
Task/Loops-Downward-for/Sidef/loops-downward-for-1.sidef
Normal file
3
Task/Loops-Downward-for/Sidef/loops-downward-for-1.sidef
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for (var i = 10; i >= 0; i--) {
|
||||
say i
|
||||
}
|
||||
3
Task/Loops-Downward-for/Sidef/loops-downward-for-2.sidef
Normal file
3
Task/Loops-Downward-for/Sidef/loops-downward-for-2.sidef
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for i in (11 ^.. 0) {
|
||||
say i
|
||||
}
|
||||
3
Task/Loops-Downward-for/Sidef/loops-downward-for-3.sidef
Normal file
3
Task/Loops-Downward-for/Sidef/loops-downward-for-3.sidef
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
10.downto(0).each { |i|
|
||||
say i
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
for var i = 10; i >= 0; i-- {
|
||||
print(i);
|
||||
}
|
||||
3
Task/Loops-Downward-for/Swift/loops-downward-for-1.swift
Normal file
3
Task/Loops-Downward-for/Swift/loops-downward-for-1.swift
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for i in stride(from: 10, through: 0, by: -1) {
|
||||
println(i)
|
||||
}
|
||||
3
Task/Loops-Downward-for/Swift/loops-downward-for-2.swift
Normal file
3
Task/Loops-Downward-for/Swift/loops-downward-for-2.swift
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for i in lazy(0...10).reverse() {
|
||||
println(i)
|
||||
}
|
||||
3
Task/Loops-Downward-for/Swift/loops-downward-for-3.swift
Normal file
3
Task/Loops-Downward-for/Swift/loops-downward-for-3.swift
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for i in reverse(0 ... 10) {
|
||||
println(i)
|
||||
}
|
||||
3
Task/Loops-Downward-for/Swift/loops-downward-for-4.swift
Normal file
3
Task/Loops-Downward-for/Swift/loops-downward-for-4.swift
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for var i = 10; i >= 0; i-- {
|
||||
println(i)
|
||||
}
|
||||
3
Task/Loops-Downward-for/Swift/loops-downward-for-5.swift
Normal file
3
Task/Loops-Downward-for/Swift/loops-downward-for-5.swift
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
for i in (0...10).reversed() {
|
||||
print(i)
|
||||
}
|
||||
4
Task/Loops-Downward-for/Ursa/loops-downward-for.ursa
Normal file
4
Task/Loops-Downward-for/Ursa/loops-downward-for.ursa
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
decl int i
|
||||
for (set i 10) (> i -1) (dec i)
|
||||
out i endl console
|
||||
end for
|
||||
2
Task/Loops-Downward-for/Wart/loops-downward-for.wart
Normal file
2
Task/Loops-Downward-for/Wart/loops-downward-for.wart
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
for i 10 (i >= 0) --i
|
||||
prn i
|
||||
1
Task/Loops-Downward-for/jq/loops-downward-for.jq
Normal file
1
Task/Loops-Downward-for/jq/loops-downward-for.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
range(10;-1;-1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue