From c4c6e6b5bc5703af5737bcd23faca2ac101060c7 Mon Sep 17 00:00:00 2001 From: Abdelrahman Shabara Date: Sat, 5 Jul 2025 21:27:30 +0300 Subject: [PATCH] Solution added --- Abdelrahamn_Shabara.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Abdelrahamn_Shabara.md diff --git a/Abdelrahamn_Shabara.md b/Abdelrahamn_Shabara.md new file mode 100644 index 0000000..5183931 --- /dev/null +++ b/Abdelrahamn_Shabara.md @@ -0,0 +1,17 @@ +```c# +using System; + +public class testt +{ + public static void Main(string[] args) + { + long num = long.Parse(Console.ReadLine()); + long sum = 0; + for (int i = 1; i <= num; i++) + { + sum += i; + } + Console.WriteLine(sum); + } +} +``` \ No newline at end of file