summaryrefslogtreecommitdiff
path: root/1p21.cpp
diff options
context:
space:
mode:
Diffstat (limited to '1p21.cpp')
-rw-r--r--1p21.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/1p21.cpp b/1p21.cpp
new file mode 100644
index 0000000..c13fb34
--- /dev/null
+++ b/1p21.cpp
@@ -0,0 +1,20 @@
+#include <iostream>
+#include "sales_item.hpp"
+
+/*
+ *
+ * Exercise 1.21
+ *
+ *
+ */
+
+int main () {
+
+ Sales_item item1;
+ Sales_item item2;
+ while(std::cin >> item1 >> item2) {
+ std::cout << item1 + item2 << std::endl;
+ }
+
+ return 0;
+}