Initial project setup with main.cpp and expected_output.txt

This commit is contained in:
Tim_Cat 2025-05-27 20:12:37 +03:00
commit da8c527dce
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;
}