Stumped on simplest nested loop

I am confused as to why these two nested loops produce different outputs, the first one performs as expected outputting the results for 11, 12 etc then 21,22 etc up to 1010 as is should. Yet in the second code snippet it outputs the results for 11, 12 up to 110 and then it goes to outputting an unknown series of calculations 12, 14, 16, 18, 20, 15, 21, 24, 27, 30 etc for some unknown reason. The only differences between the code is the x + “*” + y + " = " + to explicitly state what calculation is going on, I don’t see how that would effect the actual calculation or values of x or y. Can someone please tell me whats going on here? Thanks a lot.

	for (x =1;x<=10;x++)
	{	
		for (y=1;y<=10;y++)
		{
		print (x + " * " + y + " = " + (x * y));
		}
		
	}
	for (x =1;x<=10;x++)
	{	
		for (y=1;y<=10;y++)
		{
		print (x * y);
		}
		
	}

The code works fine when I run it. Must be something else going on…

Thanks for attempting, I got it figured out. The collapse option was selected on the console, with it deselected it runs as it should.