Examples
?- repeat(3), write('hello, world'), nl.
hello, world
yes;
hello, world
yes;
hello, world
yes
?- repeat(1).
yes
?- repeat(2).
yes;
yes
?- repeat(3).
yes;
yes;
yes
?- repeat(0).
no
?- repeat(-1).
no
?- repeat(X).
Expected Numeric but got: VARIABLE with value: X