Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
7
Task/Loops-While/Aime/loops-while.aime
Normal file
7
Task/Loops-While/Aime/loops-while.aime
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
integer i;
|
||||
|
||||
i = 1024;
|
||||
while (i) {
|
||||
o_plan(i, "\n");
|
||||
i /= 2;
|
||||
}
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
84*:*> :v
|
||||
^/2.:_@
|
||||
84*:*> :v
|
||||
^/2,*25.:_@
|
||||
|
|
|
|||
15
Task/Loops-While/COBOL/loops-while.cobol
Normal file
15
Task/Loops-While/COBOL/loops-while.cobol
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
IDENTIFICATION DIVISION.
|
||||
PROGRAM-ID. Loop-While.
|
||||
|
||||
DATA DIVISION.
|
||||
WORKING-STORAGE SECTION.
|
||||
01 I PIC 9999 VALUE 1024.
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
PERFORM UNTIL NOT 0 < I
|
||||
DISPLAY I
|
||||
DIVIDE 2 INTO I
|
||||
END-PERFORM
|
||||
|
||||
GOBACK
|
||||
.
|
||||
5
Task/Loops-While/Chapel/loops-while.chapel
Normal file
5
Task/Loops-While/Chapel/loops-while.chapel
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var val = 1024;
|
||||
while val > 0 {
|
||||
writeln(val);
|
||||
val /= 2;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue