Anonymous user
Factors of an integer: Difference between revisions
→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
m (J: also include brute force approach and some related comments) |
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
||
Line 2,208:
=={{header|Kotlin}}==
<lang scala>
if (n < 1) return
print("$n => ")
.forEach { print("$it ") }
println(n)
}
|