Answers for "php make simple loop of number elevated to exponent without pow"

PHP
0

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;
  ?>
Posted by: Guest on March-12-2021

Code answers related to "php make simple loop of number elevated to exponent without pow"

Browse Popular Code Answers by Language