Challenge overview
Hello and welcome to the challenge!
Find the sum of all integers between a
and b
and return it. They can be positive or negative, aren't ordered and should be included into the sum. If a
and b
are equal, return the value they share.
Input
- integer numbers
a
andb
separated with space
Output
- sum of numbers between
a
andb
as an integer
Constraints
-10000 <= a,b <= 50000
You can solve this programming contest in C#, C++, Java, Ruby, JavaScript, Python, PHP and many more languages. If you want, you can also take part in other Challenges. Below you can find some of them:
Did you like this challenge and would like to try your hand at some interesting big programming competitions? Check what’s all over the news in tech world in June 2019 in our article with upcoming IT Conferences, Hackathons and Online Challenges in June 2019.
Have fun and good luck! :)