Divide pi by e and print result as irrational number
Here's a simple Kotlin program that calculates the result of dividing pi by e and prints it as an irrational number. ```kotlin import kotlin.math.PI import kotlin.math.E fun main() { val result = PI / E println("The result of pi divided by e is: $result") } ``` However, this will print the result as a decimal number. If you want to print it as an irrational number, you can use the `BigDecimal` class in Kotlin, which supports arbitrary-precision arithmetic. ```kotlin import java.math.BigDecimal import java.math.MathContext import kotlin.math.PI import kotlin.math.E fun main() { val pi = BigDecimal(PI.toString(), MathContext.DECIMAL128) val e = BigDecimal(E.toString(), MathContext.DECIMAL128) val result = pi.divide(e, MathContext.DECIMAL128) println("The result of pi divided by e is: $result") } ``` This will print the result as an irrational number with a high degree of precision.