--Originally published at Blogging through my thoughts
¡Hello , programmers and curious friends! This is my fourth program , created using Ubuntu bash and Atom. For this task , my classmates and I were instructed to create a program that asks for a range of integers and then prints the sum of the numbers in that range (inclusive).
For example, the sum from 6 to 10 would be 0 + 6 + 7 + 8 + 9 + 10.
I decided to use a loop to calculate the sum, because my programming teacher Ken Bauer, wanted us to practice repetitive work.
_______________________________________________________________
The resources that helped me were:
-How to think like a computer scientist.
-cpluplus.com
-Programming hub, mobile app.
I added some extra steps, because I wanted to show more information to the users , like:
-Both numbers are the same. Give me a correct range.
– The sum is also executed if the user writes the upper and lower bound in the wrong order.
![WSQ04ATOM2](https://felipegm10blog.files.wordpress.com/2017/09/wsq04atom2.png?w=736)
![WSQ04UBUNTU](https://felipegm10blog.files.wordpress.com/2017/09/wsq04ubuntu.png?w=736)
Until next time!
![](https://pixel.wp.com/b.gif?host=felipegm10blog.wordpress.com&blog=122447374&%23038;post=206&%23038;subd=felipegm10blog&%23038;ref=&%23038;feed=1)