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