1
vote
1answer
117 views

LOOP program only need inc and zero

I have 4 different commands in LOOP programming language: y=Zero() y=Val(x)=copy x and put it in register y y=Inc(x)=x+1 y=Dec(x)=x-1 Finally I also have loop n times { ... ...
-1
votes
1answer
123 views

max(x-y,0) is loop-computable [closed]

I use the programming language Loop: http://en.wikipedia.org/wiki/LOOP_%28programming_language%29 I know that the every primitve recursive function is loop computable and vice versa but I would like ...