diff --git a/Omar-ElBialy.md b/Omar-ElBialy.md new file mode 100644 index 0000000..4272719 --- /dev/null +++ b/Omar-ElBialy.md @@ -0,0 +1,13 @@ +## Recursive solution using Python +```python +def sum(n): + if not n >= 1 & n <= 10e9: + print("n must be in the scope [1, 10e9]") + + if n == 1: + return 1 + else: + return n + sum(n-1) + +print (sum(10)) +```