---
title: "Discussion on \"Kotlin Loops and Control Keywords\" | Hashnode"
description: "Discussion on \"Kotlin Loops and Control Keywords\". Loops in Kotlin\nfor loop: Used to iterate over a range, array, collection or anything that provides an iterator.\nfun main(){\n    for(i in 1..5){\n        println(i)\n    }\n\n    for(char in \"Kotlin\"){\n        println(char)\n    }\n}\n\nfun main(args: Array<..."
url: "https://hashnode.com/posts/kotlin-loops-and-control-keywords/68b33d321fdf0a2d30f46f46"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Kotlin Loops and Control Keywords](https://akshaytekam.hashnode.dev/kotlin-loops-and-control-keywords?utm_source=hashnode&utm_medium=feed)

Loops in Kotlin for loop: Used to iterate over a range, array, collection or anything that provides an iterator. fun main(){ for(i in 1..5){ println(i) } for(char in "Kotlin"){ println(char) } } fun main(args: Array<...

Aug 30, 2025 · 2 min read · akshaytekam.hashnode.dev  
Read the article

-   [#kotlin-loop](https://hashnode.com/tag/kotlin-loop)

## Written by

[Akshay Tekam](https://hashnode.com/@akshaytekam)

@akshaytekam

  
[View profile](https://hashnode.com/@akshaytekam)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
