% This is a lpbasic program to be interpreted in lambda prolog let x:= 3 in BEGIN print("hello "); print("there!"); x := x + 2; if (x = 5) then print "x is 5"; while (x < 20) BEGIN print("the value of x is now:"); x := x+1; print(x) END END $