Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Loops-Continue/OCaml/loops-continue.ocaml
Normal file
12
Task/Loops-Continue/OCaml/loops-continue.ocaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# for i = 1 to 10 do
|
||||
try
|
||||
print_int i;
|
||||
if (i mod 5) = 0 then raise Exit;
|
||||
print_string ", "
|
||||
with Exit ->
|
||||
print_newline()
|
||||
done
|
||||
;;
|
||||
1, 2, 3, 4, 5
|
||||
6, 7, 8, 9, 10
|
||||
- : unit = ()
|
||||
Loading…
Add table
Add a link
Reference in a new issue