x = 0 y = 0 limit = 10 while x <= limit do y = 0 while y <= limit do z = x*x + y*y -x*y printf( "( %2d , %2d ) : %3d\n" , x , y , z ) y += 1 end x +=1 end