Lie detector

Report a typo

Let's write a lie detector program! The program should take a string as an input, convert it to a boolean value, and print it as the result.

Input: String.

Output: Boolean value.

Sample Input 1:

0

Sample Output 1:

false

Sample Input 2:

tRUe

Sample Output 2:

true
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic