Ranges based Kotlin interview questions and answers
Integer type range
Kotlin Working Ranges
What is Ranges operator in Kotlin?
Ranges operator helps to iterate through a range. Its operator form is (..) For Example
for (i in 1..15) print(i)
It will print from 1 to 15 in output.
Kotlin Utility Function
What is Ranges operator in Kotlin?
Ranges operator helps to iterate through a range. Its operator forms are (..)).
Example
- for (i in 1..4)
- print(i)
Aaaaas
Comments
Post a Comment