From 456ce2efc1a2f14cdaa853ec9a95945a77ff2a08 Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 22 Aug 2024 19:21:59 +0200 Subject: more --- 4p33.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 4p33.cpp (limited to '4p33.cpp') diff --git a/4p33.cpp b/4p33.cpp new file mode 100644 index 0000000..fa4f199 --- /dev/null +++ b/4p33.cpp @@ -0,0 +1,23 @@ +#include + +/* + * + * 4.33 + * + * + */ + +int main () { + + bool someValue = true; + int res; + int x = 1; + int y = 1; + // (sameValue ? (++x, ++y) : --x), --y + res = someValue ? ++x, ++y : --x, --y; + std::cout << res << " res"<< std::endl; + std::cout << x << " x" << std::endl; + std::cout << y << " y" << std::endl; + + return 0; +} -- cgit v1.2.3