<?php
$lastDigit = $number % 10;
echo "Выпало $number \n";
if ($lastDigit == 1) {
echo "Единица";}
elseif ($lastDigit == 2) {
echo "Двойка";}
elseif ($lastDigit == 3) {
echo "Тройка";}
elseif ($lastDigit == 4) {
echo "Четвёрка";}
elseif ($lastDigit == 5) {
echo "Пятерка";}
elseif ($lastDigit == 6) {
echo "Ты хуй";}
elseif ($lastDigit == 7) {
echo "Семёрка";}
elseif ($lastDigit == 8) {
echo "Восьмёрка";}
elseif ($lastDigit == 9) {
echo "Девятка";}
else {echo "Ноль";}
?>
PD9waHAKCiRudW1iZXIgPSBtdF9yYW5kKDEwMDAwMCwgOTk5OTk5KTsKJGxhc3REaWdpdCA9ICRudW1iZXIgJSAxMDsKCmVjaG8gItCS0YvQv9Cw0LvQviAkbnVtYmVyIFxuIjsKCgoJaWYgKCRsYXN0RGlnaXQgPT0gMSkgewoJZWNobyAi0JXQtNC40L3QuNGG0LAiO30KCWVsc2VpZiAoJGxhc3REaWdpdCA9PSAyKSB7CgllY2hvICLQlNCy0L7QudC60LAiO30KCWVsc2VpZiAoJGxhc3REaWdpdCA9PSAzKSB7CgllY2hvICLQotGA0L7QudC60LAiO30KCWVsc2VpZiAoJGxhc3REaWdpdCA9PSA0KSB7CgllY2hvICLQp9C10YLQstGR0YDQutCwIjt9CgllbHNlaWYgKCRsYXN0RGlnaXQgPT0gNSkgewoJZWNobyAi0J/Rj9GC0LXRgNC60LAiO30KCWVsc2VpZiAoJGxhc3REaWdpdCA9PSA2KSB7CgllY2hvICLQotGLINGF0YPQuSI7fQoJZWxzZWlmICgkbGFzdERpZ2l0ID09IDcpIHsKCWVjaG8gItCh0LXQvNGR0YDQutCwIjt9CgllbHNlaWYgKCRsYXN0RGlnaXQgPT0gOCkgewoJZWNobyAi0JLQvtGB0YzQvNGR0YDQutCwIjt9CgllbHNlaWYgKCRsYXN0RGlnaXQgPT0gOSkgewoJZWNobyAi0JTQtdCy0Y/RgtC60LAiO30KCWVsc2UgIHtlY2hvICLQndC+0LvRjCI7fQo/Pg==