How can I change a string input to integer- for example-
read_line_to_codes(user_input,L),
atom_codes(C,L).
In this C
is storing a string.Suppose the user entered 18
.So I want to use this 18
as an integer so that I can use operations like >=
with C
.Is this possible in Prolog?