0
Make a program which tells the power of any number, for example 2 raise to power 50
5 Respostas
+ 8
dude this is JavaScript,and that is a simple function and if you had actually tested it it should work,coding is about reducing space not about writing tonnes of code on simple tasks
+ 6
function pow(number,power)
{
return number**power
}
it's as easy as that
+ 5
dislike my comments all you want Shahid,i still do not know the necessity of writing full programs on powers when a single function is needed to do this and power method even exists in the Math library
0
no
0
show out put it's wrong becong it becomes high range than your int of 8 byte does not support u should choose more byte data type write full program if you can