summaryrefslogtreecommitdiff
path: root/2.42-v1.cpp
diff options
context:
space:
mode:
Diffstat (limited to '2.42-v1.cpp')
-rw-r--r--2.42-v1.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/2.42-v1.cpp b/2.42-v1.cpp
new file mode 100644
index 0000000..eba28a3
--- /dev/null
+++ b/2.42-v1.cpp
@@ -0,0 +1,19 @@
+#include <iostream>
+#include "sales_data.hpp"
+
+/*
+ *
+ * 2.41 - 1.20
+ *
+ *
+ */
+
+int main () {
+
+ SalesData book1;
+ while(std::cin >> book1.BookNo >> book1.UnitsSold >> book1.Revenue) {
+ std::cout << book1.BookNo << " " << book1.UnitsSold << " " << book1.Revenue << std::endl;
+ }
+
+ return 0;
+}