commit a70748e0d67e973893d229454b54f88990a5e672 Author: Tim_Cat Date: Tue May 27 20:27:54 2025 +0300 Initial project setup with main.cpp and expected_output.txt diff --git a/expected_output.txt b/expected_output.txt new file mode 100644 index 0000000..3de3c78 --- /dev/null +++ b/expected_output.txt @@ -0,0 +1 @@ +The sum of numbers from 1 to 100 is: 5050 \ No newline at end of file diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..31b9a9b --- /dev/null +++ b/main.cpp @@ -0,0 +1,10 @@ +#include + +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; +} \ No newline at end of file