Hello. I am new to prolog. I am trying switch letters in a string to the opposite letter in the alphabet. This is my program, I can swap one letter but not change an entire String. Help me please.
letter(a, z).
letter(b, y).
letter(c, x).
letter(d, w).
letter(e, v).
letter(f, u).
letter(g, t)...
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.