= 1) { $result += $n % 10; $n = $n / 10; } $n = $result; $result = 0; } echo $n; ?>