From f84219e3c0eae8d6021411f6ab215c06e6418e0b Mon Sep 17 00:00:00 2001 From: tareq Date: Mon, 1 Sep 2025 22:43:54 +0300 Subject: [PATCH 1/2] creat file.md --- Tareq159.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Tareq159.md diff --git a/Tareq159.md b/Tareq159.md new file mode 100644 index 0000000..0b5d6ed --- /dev/null +++ b/Tareq159.md @@ -0,0 +1 @@ +hi From fc3c0cee8f117ec8730190d45e3cc0e08f59f68d Mon Sep 17 00:00:00 2001 From: tareq Date: Mon, 1 Sep 2025 22:55:55 +0300 Subject: [PATCH 2/2] my code in c++ --- Tareq159.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Tareq159.md b/Tareq159.md index 0b5d6ed..3b58dbe 100644 --- a/Tareq159.md +++ b/Tareq159.md @@ -1 +1,10 @@ -hi +#include +using namespace std; +int main() +{ + int num , ans; + cin >> num; + ans = (num+1) * num / 2; + cout << ans <