Giter Site home page Giter Site logo

i-can-pull-it's Introduction

Welcome, heroes

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.

Problem Statement

You are given a positive integer n. Your task is to find the sum of all positive integers less than or equal to n.

Input

The input consists of a single integer n (1 ≤ n ≤ 109).

Output

Print a single integer, the sum of all positive integers less than or equal to n.

Examples

Input: 5

Output: 15

Input: 10

Output: 55

Contribution

  1. Fork the repository to your personal account
  2. Clone the forked repo into your local machine
  3. Create a file with yourname and md extension, like mohamed-elsherbiny.md
  4. Write your solution inside the file
  5. Commit your changes, push to the remote repository
  6. Create a pull request using GitHub website interface

Need help?

See this video if you can't figure out how.

i-can-pull-it's People

Contributors

saifsweelam avatar asmaa-badr avatar sherbiiny avatar eyad-hazem-elmorsy avatar eyad-abdelmohsen avatar saleh-enab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.