I want to write such a function in PROLOG that when i run hulk(2,P) in the terminal , it gives me :
I write the code as below. BUt it doesn't work.
hulk(2,P) :- P is NO.
I tried also below
hulk(2,P) :- P is [NO].
But it doesn't work.
When i compiled it , I take the warning:
Singleton variables: [No]
WHen i run it , i take the error:
ERROR: is/2: Arguments are not sufficiently instantiated
HOw to do it?