public class Tools { public static int sum(int a, int b) { int s, i; // Help variables used to write program s = 0; // s = current total for (i = a; i <= b; i++ ) s = s + i; // Add next number to total return s; // Return the total as output } }