A simple question: how can I declare a sentence that will create the number indicated by +1 +2 and +3? I tried:
addup(Thenumber,Thenumber+1).
addup(Thenumber,Thenumber+2).
addup(Thenumber,Thenumber+3).
but when I run it with say, Thenumber = 5, it just returns 5 + 1 5 + 2 5 + 3. I tried using "is" to make it evaluate, but it does not seem to work. Any help would be appreciated.
source
share