Your First Kotlin Program
Your First Kotlin Program
Video Explanation

Hello, World!
Every programming journey begins with a simple "Hello, World!" program. In Kotlin, it takes just two lines.
fun main() {
println("Hello, World!")
}
Output:
Hello, World!
Breaking It Down
fun
The fun keyword is used to declare a function in Kotlin.
main()
main is the entry point of every Kotlin program. When you run your program, Kotlin starts execution from the main function.
println()
println stands for "print line." It prints the given text to the console followed by a newline character.