Closed kedarmhaswade closed 1 month ago
Implement a function, power, that
power
b
e
For instance,
function power(b, e) { // your code } power(2, 5); // returns 32 power(1.2, 2); // return 1.44
Write the function in both imperative/procedural and functional styles.
Cool!
Implement a function,
power
, thatb
(a real number), ande
(an integer), andb
raised to thee
th power.For instance,
Write the function in both imperative/procedural and functional styles.