WSQ07 – Sum of Numbers

This program will ask you for two numbers and it will give the sum of the range of those numbers. For example, the sum from 6 to 10 would be 0 + 6 + 7 + 8 + 9 + 10.

This is the code of the program.

SumOfNumbers

This is the program running in Cygwin.

SumOfNumbers(1)

CC BY-SA 4.0 WSQ07 – Sum of Numbers by davidmedblog is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.