input = *
value = 3
output = ***(3 star)
use prolog to write out the coding when key in value is 3 than the output is ***
(3star) or when key in value is 5 than output is *****
(5 star).
so i want to ask what are the coding in prolog for this question.
my answer is like below but cannot compile and have error. can check for me??
start:-
write('input:'),
read(X),
nl,
write('value:'),
read(Y),
nl.
end_of_file.