KT
kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// https://www.sololearn.com/Discuss/3090978
fun main(args: Array<String>) {
var x: Int = readLine()!!.toInt()
var y: Int = readLine()!!.toInt()
println ("The sum is ${y+x}")
println ("The product is ${y*x}")
if (x>y) println ("The difference is ${x-y}")
else if (x<y) println ("The difference is ${y-x}")
else println ("The difference is 0")
println ("x/y is ${x/y}" )
println ("y/x is ${y/x}" )
}
/*
Input:
4
2
Output:
The sum is 6
The product is 8
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run