Anonymous user
Multiplication tables: Difference between revisions
→{{header|OCaml}}
(added ocaml) |
|||
Line 280:
{{trans|C}}
<lang ocaml>let
let max = 12 in
let fmax = float_of_int max in
let dgts = int_of_float (
let fmt =
let fmt2 =
for i = 1 to max do
print_string "\n\n";
for j = 1 to max do
for i = 1 to pred j do
for i = j to max do
print_newline()
done;
print_newline()</lang>
=={{header|Perl}}==
|