From 5d8a6632209aee9478b36f63f66e7e64d7fc3469 Mon Sep 17 00:00:00 2001 From: Yasmine Date: Thu, 17 Jul 2025 22:02:58 +0300 Subject: [PATCH] Solution to the problem --- yasmine-ahmed.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 yasmine-ahmed.md diff --git a/yasmine-ahmed.md b/yasmine-ahmed.md new file mode 100644 index 0000000..d032cc9 --- /dev/null +++ b/yasmine-ahmed.md @@ -0,0 +1,11 @@ +```cpp +#include +using namespace std; + +int main() { + long long n; + cin >> n; + cout << n * (n + 1) / 2 << endl; + return 0; +} +```