summaryrefslogtreecommitdiff
path: root/3p1-1p9.cpp
blob: 6069cd7e4114f6ea91de9461e259291e156388c7 (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
#include <iostream>

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