repl.it
@rshetty/

Playground

Kotlin (beta)

No description

fork
loading
main.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fun main() {
	var x = Integer.valueOf(readLine())
	var y = Integer.valueOf(readLine())
	if (x > 0) {
		if (y > 0) {
			println(1)
		} else {
			println(4)
		}
	}
	else {
		if (y > 0) {
			println(2)
		} else {
			println(3)
		}
	}
}
Welcome to Kotlin version 1.0.3