From 118fdd0ae36a7c1c18edb62d0a2145ccbe80e761 Mon Sep 17 00:00:00 2001 From: Abdulrhman Date: Thu, 20 Mar 2025 13:53:59 +0200 Subject: [PATCH] abdulrhmany solution - abdulrhmany.md --- abdulrhmany.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 abdulrhmany.md diff --git a/abdulrhmany.md b/abdulrhmany.md new file mode 100644 index 0000000..0e86393 --- /dev/null +++ b/abdulrhmany.md @@ -0,0 +1,9 @@ +# Hello + +You are given a positive integer n. Your task is to find the sum of all positive integers less than or equal to n. + +### Solution +```python +n = int(input()) +print(n * (n + 1) // 2) +```