2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
10
Task/Integer-comparison/Kotlin/integer-comparison.kotlin
Normal file
10
Task/Integer-comparison/Kotlin/integer-comparison.kotlin
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fun main(args: Array<String>) {
|
||||
val n1 = readLine()!!.toLong()
|
||||
val n2 = readLine()!!.toLong()
|
||||
println(when {
|
||||
n1 < n2 -> "$n1 is less than $n2"
|
||||
n1 > n2 -> "$n1 is greater than $n2"
|
||||
n1 == n2 -> "$n1 is equal to $n2"
|
||||
else -> ""
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue