Website Summary Files Commits Branches @commit @diff @stats
path: root / Week03 / Exercise10.cpp
diff options
context:
space:
mode:
Commiteb8b89e3622f5a77027fe88930b6d38cfe73b774 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-10-18 14:40:29 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-10-18 14:41:48 +0300
Filesb986b23dc049adf9f9442afac5e26f439ca60a26 /Week03/Exercise10.cpp
upp-2025-solutions-eb8b89e3622f5a77027fe88930b6d38cfe73b774.tar
upp-2025-solutions-eb8b89e3622f5a77027fe88930b6d38cfe73b774.tar.gz
upp-2025-solutions-eb8b89e3622f5a77027fe88930b6d38cfe73b774.zip
Parentecf6048c3bbb0c9395ac524921a19f38ef3887ea (diff)
feat(Week03): Add exercises and solutions
1 files changed, 10 insertions, 0 deletions
-rw-r--r--Week03/Exercise10.cpp10
diff --git a/Week03/Exercise10.cpp b/Week03/Exercise10.cpp
new file mode 100644
index 0000000..dda943e
--- /dev/null
+++ b/Week03/Exercise10.cpp
@@ -0,0 +1,10 @@
+#include <iostream>
+
+int main() {
+ float a1, a2, a3, b1, b2, b3;
+ std::cin >> a1 >> a2 >> a3 >> b1 >> b2 >> b3;
+
+ std::cout << (a1 * b1 + a2 * b2 + a3 * b3);
+
+ return 0;
+}