Hello,
i am a newbie and i have the C-like code:
------
if( x > 10){
x = x + 5 - y;
y = x;
}else{
y = 0;
x = 0;
}
------
and i would to figure how the above code would be in prolog.
So, i was trying :
------
( X > 10
-> X is X + 5 - Y,
Y is X
;
Y is 0,
X is 0
) ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.