The sum of a = 2.3 and b = 1.9 and the result should be 4.
So what I tried is to round the number by converting to Int but I am getting null pointer exception.
fun main() {
val a = readLine()!!.trim().toFloat()
val b = readLine()!!.trim().toFloat()
val result = addNumbers(a,b)
}
fun addNumbers(a:Float, b:Float):Int{ //I should not change this function
return a.toInt()+b.toInt()
}