Website Summary Files Commits Branches @commit @diff @stats
path: root / Week03 / Exercise10.cpp
diff options
context:
space:
mode:
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;
+}