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