mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
29 lines
565 B
Kotlin
29 lines
565 B
Kotlin
package while_bug_1
|
|
|
|
import java.io.*
|
|
|
|
open class AllEvenNum() {
|
|
|
|
default object {
|
|
open public fun main(args : Array<String?>?) : Unit {
|
|
var i : Int = 1
|
|
while ((i <= 100)) {
|
|
{
|
|
if (((i % 2) == 0))
|
|
{
|
|
System.out?.print((i.toString() + ","))
|
|
}
|
|
|
|
}
|
|
(i = i + 1)
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
AllEvenNum.main(arrayOfNulls<String>(0))
|
|
return "OK"
|
|
}
|