Scripts
global
prime
power
newtonraphson
fibonacci
file
multithread
digitcubes
perfectseries
perfecttest
kapreckerNumber
kapreckerConstant
hawkresponse
entityTemplate
array
multipleAssignment
global
prime
power
newtonraphson
fibonacci
file
multithread
digitcubes
perfectseries
perfecttest
kapreckerNumber
kapreckerConstant
hawkresponse
entityTemplate
array
multipleAssignment
alias mm = MathModule
function main()
{
echo `exec power(2,10) `
}
function power(var x , var y)
{
if(y == 0)
{
return 1
}
// echo " y is "+y
var product = x
for(var i=1;i {
// echo "product is ::::" + product
// echo " x is "+x
product = product * x
}
// echo " power is "+product
return product
}
function main()
{
echo `exec power(2,10) `
}
function power(var x , var y)
{
if(y == 0)
{
return 1
}
// echo " y is "+y
var product = x
for(var i=1;i
// echo "product is ::::" + product
// echo " x is "+x
product = product * x
}
// echo " power is "+product
return product
}
1024