RosettaCodeData/Task/Compile-time-calculation/Kotlin/compile-time-calculation.kts

7 lines
149 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
// version 1.0.6
const val TEN_FACTORIAL = 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2
fun main(args: Array<String>) {
println("10! = $TEN_FACTORIAL")
}