Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
18
Task/Loops-Break/OCaml/loops-break.ml
Normal file
18
Task/Loops-Break/OCaml/loops-break.ml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Random.self_init();;
|
||||
- : unit = ()
|
||||
|
||||
# while true do
|
||||
let a = Random.int 20 in
|
||||
print_int a;
|
||||
print_newline();
|
||||
if a = 10 then raise Exit;
|
||||
let b = Random.int 20 in
|
||||
print_int b;
|
||||
print_newline()
|
||||
done;;
|
||||
15
|
||||
18
|
||||
2
|
||||
13
|
||||
10
|
||||
Exception: Pervasives.Exit.
|
||||
Loading…
Add table
Add a link
Reference in a new issue