<?php


$i = 0;
$otvet = function () use (&$i) {
	return $i * $i;
};

for ($i = 1; $i < 10; ++$i) {
	echo "{$i}x{$i}={$otvet()}\n";
}
