summaryrefslogtreecommitdiff
path: root/increment-tests.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-18 21:02:35 +0200
committerOskar <[email protected]>2024-08-18 21:02:35 +0200
commit19903ae3536255dfa2778846275267605cee9f7e (patch)
tree94f9ecb62c1d02b5c00f4fc9c760ec4ed4a10105 /increment-tests.cpp
parent3d0a78eaaafff660cd04adf23a6bec1721187abf (diff)
more exercises, one unfinished
Diffstat (limited to 'increment-tests.cpp')
-rw-r--r--increment-tests.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/increment-tests.cpp b/increment-tests.cpp
new file mode 100644
index 0000000..d5b5665
--- /dev/null
+++ b/increment-tests.cpp
@@ -0,0 +1,19 @@
+#include <iostream>
+
+/*
+ *
+ *
+ *
+ *
+ */
+
+int main () {
+
+ int i = 0;
+ int j = 0;
+ int k = 0;
+ j = ++i;
+ k = i++;
+ std::cout << i << " " << j << " " << k << std::endl;
+ return 0;
+}