I start to learn I/O in prolog.
I have SWI prolog compiler.
I try the following program to get number from user and output cube:
write('next item: '),
process(stop) :- !.
C is N * N * N,
write('cube of '),write(N),write(' is '),
but when i try it i can't accept result. every time i'am in first 'read'.
next item: 2