summaryrefslogtreecommitdiff
path: root/2p41-1p20.cpp
blob: 8cbd0b1e1591cf8589b9c429cd91a20390eef044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include "sales_item.hpp"

/*
 *
 * 2.41 - 1.20
 *
 *
 */

struct SalesData {
	std::string BookNo;
	unsigned int UnitsSold = 0;
	double Revenue = 0.0;
};

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;
}