Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
10
Task/Integer-sequence/Kotlin/integer-sequence.kts
Normal file
10
Task/Integer-sequence/Kotlin/integer-sequence.kts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import java.math.BigInteger
|
||||
|
||||
fun main() {
|
||||
// Using a 64-bit unsigned type, print until 18446744073709551615
|
||||
(1u..ULong.MAX_VALUE).forEach { println(it) }
|
||||
|
||||
// Using unlimited-size integers, print forever
|
||||
var n = BigInteger.ONE
|
||||
while (true) println(n++)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue