Compare commits

...

2 Commits

2 changed files with 11 additions and 0 deletions

1
expected_output.txt Normal file
View File

@ -0,0 +1 @@
The sum of numbers from 1 to 100 is: 5050

10
main.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <iostream>
int main() {
int sum = 0;
for (int i = 1; i <= 100; i++) {
sum += i;
}
std::cout << "The sum of numbers from 1 to 100 is: " << sum << std::endl;
return 0;
}