How to read an array “list” & print it in prolog ?
I need to :-
Prompt user to insert an array
The user some how tells me that He’s finished
Then I print it
I just can’t think of how to make this in a predicate.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is this what you would like to have?
Code:-
This is how one can implement this behaviour: