Last active
September 26, 2018 16:24
-
-
Save belushkin/6f0b0085777e05ec21e816ddeb5c227a to your computer and use it in GitHub Desktop.
Google preparation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$n = 236; | |
function reverse($n){ | |
if (strlen($n)==0) { | |
return ''; | |
} | |
return substr($n, -1) . reverse(substr($n, 0, -1)); | |
} | |
//echo reverse($n), "\n"; | |
function beka($n){ | |
if ($n>0) { | |
beka($n-1); | |
echo $n, " "; | |
} | |
return; | |
} | |
beka(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment