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

/*
 *
 * Exercise 1.22 (Not made by me)
 *
 *
 */

int main() {

	Sales_item total, item;
	if (std::cin >> total) {
		while (std::cin >> item)
			total += item;

		std::cout << total << std::endl;
	}
	
	return 0;
}