rhea0110 / calculate-power-of-a-number Goto Github PK
View Code? Open in Web Editor NEWWrite a function power, which will take two integers (num,pow) as argument and return the num raised to the power pow. If pow < 0 then return -1 else return num raised to the power pow.