import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`) val num:Int = sc.nextInt(); var i:Int = 1 while(i < num) { if (num % ++i == 0) { System.out.println(i + " ") } } }
20
JNA Warning: IOException removing temporary files: JNA temporary directory '/tmp' is not writable prog.kt:12:26: error: none of the following functions can be called with the arguments supplied: public final operator fun plus(other: Byte): Int defined in kotlin.Int public final operator fun plus(other: Double): Double defined in kotlin.Int public final operator fun plus(other: Float): Float defined in kotlin.Int public final operator fun plus(other: Int): Int defined in kotlin.Int public final operator fun plus(other: Long): Long defined in kotlin.Int public final operator fun plus(other: Short): Int defined in kotlin.Int System.out.println(i + " ") ^
Standard output is empty