This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
previous = 1 current = 1 print previous + " " + current 8.times{ next = previous + current previous = current current = next print " " + next }
def fib(n){a=0b=1while (b < n ){ t=a a=b b = a+t println a } } fib(100)
Will this work in gradle
def fib(n){
ReplyDeletea=0
b=1
while (b < n ){
t=a
a=b
b = a+t
println a
}
}
fib(100)
Will this work in gradle
Delete