In this Kotlin tutorial, we list out the programs for some of the most asked use cases, in any programming language.
Kotlin General Programs
- Kotlin – Add two numbers
- Kotlin – Armstrong number
- Kotlin – Average of two numbers
- Kotlin – Average of numbers given in array
- Kotlin – Check if given number is part of Fibonacci series
- Kotlin – Check prime number
- Kotlin – Even number
- Kotlin – Factorial
- Kotlin – Factors of a number
- Kotlin – Fibonacci series
- Kotlin – Find largest of two numbers
- Kotlin – Find smallest of two numbers
- Kotlin – Find largest of three numbers
- Kotlin – Find smallest of three numbers
- Kotlin – Odd number
- Kotlin – Palindrome
- Kotlin – Print prime numbers
- Kotlin – Product of digits in a number
- Kotlin – Reverse a number
- Kotlin – Sum of first n natural numbers
- Kotlin – Sum of squares of first n natural numbers
- Kotlin – Sum of digits in a number