Here is how to find factorial of a number in Kotlin
Below is an example to find the factorial of a number in Kotlin programming language using the do-while loop and using the scanner object to read the user input. Run the above Kotlin program to get the following outcome:-