<outputs with decimals not working in kotlin> fun ...
# stackoverflow
u
outputs with decimals not working in kotlin fun main() { println("This is a calculator") println("enter your first number") val no1 = readLine()!! println("enter your operation") val operation1 = readLine()!! println("enter your second number") val no2 = readLine()!! val result = if (operation1 == "*") print(no1.toInt() * no2.toInt()) else if (operation1 == "+") print(no1.toInt() + no2.toInt()) else if (operation1 == "-") print(no1.toInt() - no2.toInt()) else if...