diff options
Diffstat (limited to '4p12.cpp')
-rw-r--r-- | 4p12.cpp | 23 |
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; +} |