Search
 
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
Name
4+9 =