A basic program to calculate the summation of two integers up to a specified range