summaryrefslogtreecommitdiff
path: root/4p4.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-08-16 19:00:04 +0200
committerOskar <[email protected]>2024-08-16 19:00:04 +0200
commitbfa29c55fd58912845b5a6684489231a4d4e675e (patch)
tree615213f43d685d7cc0b14cac0fcafe70cddb07e7 /4p4.cpp
parent6ff70adb810f1e194892398656e71f979f088feb (diff)
more exercises
Diffstat (limited to '4p4.cpp')
-rw-r--r--4p4.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/4p4.cpp b/4p4.cpp
new file mode 100644
index 0000000..d290a85
--- /dev/null
+++ b/4p4.cpp
@@ -0,0 +1,16 @@
+#include <iostream>
+
+/*
+ *
+ * 4.4
+ *
+ *
+ */
+
+int main () {
+
+ int res1 = ((((12 / 3) * 4) + (5 * 15)) + ((24 % 4) / 2));
+ int res2 = 12 / 3 * 4 + 5 * 15 + 24 % 4 / 2;
+ std::cout << res1 << " " << res2 << std::endl;
+ return 0;
+}