DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php make simple loop of number elevated to exponent without pow
<?php $n = 2; $p = 6; result = 1; for ($i = 0; $i < $p; $i++) { result *= $n; } echo result; ?>
PREVIOUS
NEXT
Tagged:
#php
#simple
#loop
#number
#elevated
#exponent
#pow
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit