How can we get something from user in prolog : for example :
animal(dog). animal(cat). write(\'please type animal name:\'),nl. /* How to read from user and
Reading values
% name id stud_name('ankit',01). stud_name('varun ',02). Read_stud:- write("write name to know Id of student "),nl, Read(Input),nl, stud_name(Input,Output),nl, write(Output).