This is an exercise on pull requests. I have a problem that I can't solve and I need your help. The only way I can receive your contributions is via pull requests.
You are given a positive integer n
. Your task is to find the sum of all positive integers less than or equal to n
.
The input consists of a single integer n
(1 ≤ n ≤ 109).
Print a single integer, the sum of all positive integers less than or equal to n
.
Input: 5
Output: 15
Input: 10
Output: 55
- Fork the repository to your personal account
- Clone the forked repo into your local machine
- Create a file with yourname and
md
extension, likemohamed-elsherbiny.md
- Write your solution inside the file
- Commit your changes, push to the remote repository
- Create a pull request using GitHub website interface
See this video if you can't figure out how.