Следующий код и запрос не работают:
bottles(X) :-
write(X), write(' bottles of beer on the wall,'), nl,
write(X), write(' bottles of beer,'), nl,
write('Take one down, and pass it around,'), nl,
X1 is X - 1,
write(X1), write(' bottles of beer on the wall.'), nl,
bottles(X1).
bottles(1) :-
write('1 bottle of beer on the wall, 1 bottle of beer,'), nl,
write('Take one down, and pass it around,'), nl,
write('Now they are alle gone.'), nl.
?- bottles(99).
С SWI-Prolog 8.3.15 в Windows я даже не могу нажать Ctrl-C.
Что происходит не так?