diff options
Diffstat (limited to '3p1-1p9.cpp')
-rw-r--r-- | 3p1-1p9.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/3p1-1p9.cpp b/3p1-1p9.cpp new file mode 100644 index 0000000..ba717e3 --- /dev/null +++ b/3p1-1p9.cpp @@ -0,0 +1,25 @@ +#include <iostream> +#include "sales_item.hpp" + +/* + * + * 3.1, 1.9 + * + * + */ + +using std::cout; +using std::cin; +using std::endl; +int main () { + + int i = 50; + int sum = 0; + while(i <= 100) { + sum += i; + i++; + } + + cout << sum << endl; + return 0; +} |