= 20
var t1 = 0
var t2 = 1
print("First $n terms: ")
for (i in 1..n) {
val sum = t1 + t2
t1 = t2
t2 = sum
}
}
I want to diplay the 20th number only...how do i add this?
Inside for write println(i)
Обсуждают сегодня