Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
8
Task/Loops-For/Ballerina/loops-for.ballerina
Normal file
8
Task/Loops-For/Ballerina/loops-for.ballerina
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import ballerina/io;
|
||||
|
||||
public function main() {
|
||||
foreach int i in 1...5 {
|
||||
foreach int j in 1...i { io:print("*"); }
|
||||
io:println();
|
||||
}
|
||||
}
|
||||
9
Task/Loops-For/Excel/loops-for.excel
Normal file
9
Task/Loops-For/Excel/loops-for.excel
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
=REDUCE(
|
||||
"", SEQUENCE(6),
|
||||
LAMBDA(outer, i,
|
||||
VSTACK(
|
||||
outer,
|
||||
REDUCE("", SEQUENCE(i), LAMBDA(inner, j, inner & "*"))
|
||||
)
|
||||
)
|
||||
)
|
||||
4
Task/Loops-For/M2000-Interpreter/loops-for-1.m2000
Normal file
4
Task/Loops-For/M2000-Interpreter/loops-for-1.m2000
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
MODULE check {
|
||||
FOR I=1 TO 5:FOR I=I to 1:?"*";:NEXT:?:NEXT
|
||||
}
|
||||
check
|
||||
17
Task/Loops-For/M2000-Interpreter/loops-for-2.m2000
Normal file
17
Task/Loops-For/M2000-Interpreter/loops-for-2.m2000
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module check {
|
||||
For i=1 to 5
|
||||
For j=1 to i
|
||||
Print "*";
|
||||
Next j
|
||||
Print
|
||||
Next i
|
||||
Print "End1"
|
||||
For i=1 to 5 {
|
||||
For j=1 to i {
|
||||
Print "*";
|
||||
}
|
||||
Print
|
||||
}
|
||||
Print "End2"
|
||||
}
|
||||
check
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
For i=1 to 5
|
||||
For j=1 to i
|
||||
Print "*";
|
||||
Next j
|
||||
Print
|
||||
Next i
|
||||
Print "End1"
|
||||
For i=1 to 5 {
|
||||
For j=1 to i {
|
||||
Print "*";
|
||||
}
|
||||
Print
|
||||
}
|
||||
Print "End2"
|
||||
Loading…
Add table
Add a link
Reference in a new issue