Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
:- module multable.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
main(!IO) :-
N = 5,
for I = 1 to 10 do
io.write_int(N, !IO), io.write_string(" x ", !IO), io.write_int(I, !IO), io.write_string(" = ", !IO), io.write_int(N*I, !IO), io.write_string("\n", !IO).Coding works best on desktop or with an external keyboard.