public class ComputeSum {
	public static void main(String[] args) {
		int currentValue, sum;
		int startValue = 1, endValue = 4;
		
		sum = 0;
		currentValue = startValue;
		do {
			sum = sum + currentValue;
			currentValue = currentValue + 1;
		}while (currentValue <= endValue);
		
		System.out.print("Sum from " + startValue); 
		System.out.println(" up to " + endValue + " is: " + sum);
	}
}