summaryrefslogtreecommitdiff
path: root/4p12.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-16 22:09:58 +0200
committerOskar <[email protected]>2024-08-16 22:09:58 +0200
commitaa9b47d8f1a8b3fac4d80276401e6d0884edb86a (patch)
tree19fc006b979a0202b5095291896fd5679c4a5036 /4p12.cpp
parentbfa29c55fd58912845b5a6684489231a4d4e675e (diff)
more
Diffstat (limited to '4p12.cpp')
-rw-r--r--4p12.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/4p12.cpp b/4p12.cpp
new file mode 100644
index 0000000..74442e4
--- /dev/null
+++ b/4p12.cpp
@@ -0,0 +1,23 @@
+#include <iostream>
+
+/*
+ *
+ * 4.12
+ *
+ *
+ */
+
+int main () {
+
+ int i = 1;
+ int j = 9;
+ int k = 10;
+
+ if(i != (j < k)) { // j < k is evaluated first
+ // because j < k now it will return true
+ // When 'i' is NOT true(aka NOT 0) then print below
+ std::cout << "..." << std::endl;
+ }
+
+ return 0;
+}