Created
February 15, 2021 02:10
-
-
Save codinginflow/e9bfd964fe0743bbc82617ddd2925804 to your computer and use it in GitHub Desktop.
Kotlin for Beginners Part 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
println("2 > 1 is ${2 > 1}") | |
println("2 < 1 is ${2 < 1}") | |
println("1 >= 1 is ${1 >= 1}") | |
println("1 == 1 is ${1 == 1}") | |
println("1 == 2 is ${1 == 2}") | |
println("1 != 2 is ${1 != 2}") | |
println("!(2 > 1) is ${!(2 > 1)}") | |
println("true && false = ${true && false}") | |
println("true || false = ${true || false}") | |
val condition = (2 > 1) || (3 > 2) && (2 > 3) | |
println(condition) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment