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
function main()
{
echo "Fibonacci series"
echo "1"
exec fibonacci(1,2,1)
}
function fibonacci(var x , var y , var count)
{
if (count == 10)
{
return 1
}
echo ""+y
var z = x+y
count = count +1
exec fibonacci(y,z,count)
}
{
echo "Fibonacci series"
echo "1"
exec fibonacci(1,2,1)
}
function fibonacci(var x , var y , var count)
{
if (count == 10)
{
return 1
}
echo ""+y
var z = x+y
count = count +1
exec fibonacci(y,z,count)
}
Fibonacci series
1
2
3
5
8
13
21
34
55
89
1
2
3
5
8
13
21
34
55
89