Why I am getting nil at the end of my interpreted code?

Ex. for
if 7 > 0
print "Seven is greater than zero"

It shows in the right box as: Seven is greater than zeronil


We can ignore that extra output. It is a behavior of the console.

If you use puts it will print on its own line.