Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Java by kospota ( 5 years ago )
fun notMain(name: String = "Runn"): String {
    return name
}

fun main() {
    println(notMain())
	println("\n")
    
	var list = listOf(1,2,3)
    
    for (j in 0 .. list.size - 1) {
        println(list[j])
    }
    
	for (i in 0 until list.size) {
        println(list[i])
    }
}

 

Revise this Paste

Your Name: Code Language: