Ver Fonte

exercise 3.1

George C. Privon há 2 anos atrás
pai
commit
23d480fd53
1 ficheiros alterados com 11 adições e 0 exclusões
  1. 11 0
      03-typesandentities/exercises/ex3.1

+ 11 - 0
03-typesandentities/exercises/ex3.1

@@ -0,0 +1,11 @@
+a) False || ((True && False) || True)
+
+b) ((2/3) / 4 ) == (4/3) /2
+
+c) ((7 - (5/4)) > 6) || ((2^5) - 1 == 31)
+
+d) 2 < 3 < 4 is not well-formed beacuse it would compare a Bool with a number
+
+e) (2 < 3) && (3 < 4)
+
+f) 2 && 3 < 4 is not well formed because it would apply a boolean operator to a number