Simple converter

Report a typo

Let's make a simple converter that converts values to the following three types – Int, Double, and Boolean.

Your program should read a value and print the result of its conversion to Int, Double, and Boolean types sequentially.

Input: value: String.

Output: Int, Double, and Boolean values (each on a new line).

Sample Input 1:

0

Sample Output 1:

0
0.0
false
Write a program in Kotlin
fun main() {
// write your code here

}
___

Create a free account to access the full topic