Write a program that reads three boolean variables x, y, and z (each on a separate line) and then prints the result of the following logical expression: NOT(x AND y) OR (z).
Boolean type and operations. True and false
Program a Boolean function
Report a typo
Sample Input 1:
true
true
falseSample Output 1:
falseSample Input 2:
true
false
trueSample Output 2:
trueWrite a program in Kotlin
fun main() {
val x = readLine().toBoolean() // read other values in the same way
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.