Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
3
Task/Loops-Break/Common-Lisp/loops-break-2.lisp
Normal file
3
Task/Loops-Break/Common-Lisp/loops-break-2.lisp
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(do ((a (random 20) (random 20))) ; Initialize to rand and set new rand on every loop
|
||||
((= a 10) (write a)) ; Break condition and last step
|
||||
(format t "~a~3T~a~%" a (random 20))) ; On every loop print formated `a' and rand `b'
|
||||
12
Task/Loops-Break/Haxe/loops-break.haxe
Normal file
12
Task/Loops-Break/Haxe/loops-break.haxe
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class Program {
|
||||
static public function main():Void {
|
||||
while(true) {
|
||||
var a = Std.random(20);
|
||||
Sys.println(a);
|
||||
if (a == 10)
|
||||
break;
|
||||
var b = Std.random(20);
|
||||
Sys.println(b);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue