1
0
Fork 0
lrthw/exercises/ex28.rb

17 lines
539 B
Ruby
Raw Normal View History

2023-09-30 13:20:59 +00:00
true && true # true
false && true # false
1 == 1 && 2 == 1 # false # true
1 == 1 || 2 != 1 # true
true && 1 == 1 # true
false && 0 != 0 # false
true || 1 == 1 # true # false
1 != 0 && 2 == 1 # true # true # false
(true && false) # true
(1 == 1 && 0 != 1) # false
(10 == 1 || 1000 == 1000) # false
(1 != 10 || 3 == 4) # false
("testing" == "testing" && "Zed" == "Cool Guy") # true
1 == 1 && !("testing" == 1 || 1 == 0) # true
"chunky" == "bacon" && !(3 == 4 || 3 == 3) # false
3 == 3 && !("testing" == "testing" || "Ruby" == "Fun") # false