13 lines
164 B
C++
13 lines
164 B
C++
#include<iostream>
|
|
|
|
int main(){
|
|
int i;;
|
|
int total = 0;
|
|
|
|
for (i = 50; i < 101; i++){
|
|
total += i;
|
|
std::cout << i << " " << total << std::endl;
|
|
}
|
|
return 0;
|
|
}
|