fun main() {
    println("Enter Two Integer Numbers")//1
    val first = readLine()!!.toInt()//2
    val second = readLine()!!.toInt()//3

    if(first>second)//4
    {
        println("First Entered Number is Greater=$first")//5
    }
    else
    {
        println("Second Entered Number is Greater=$second")//6
    }
}

1 Instruct the user to Enter a Integer value 
2 Take value from command line and  convert it into Int and assign to firt variable 
3 Take value from command line and  convert it into Int and assign to second variable 
4 Check First Number is greater than Second Number 
5 If statement true then on command line First Entered Number is Greater=20 ( when entered numbers are  20 and 10)
6 If statement false then on command line Second Entered Number is Greater=50 (when entered numbers are 30 and 50)

Output
Enter Two Integer Numbers
 20
 30
 Second Entered Number is Greater=30
Enter Two Integer Numbers
 50
 20
 First Entered Number is Greater=50