Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function stepen($a,$n)
- {
- for($result = 1; $n > 0; --$n)
- {
- $result *= $a;
- }
- return $result;
- }
- echo stepen(5,5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement