import cs1.Keyboard; public class evenadd { public static void main (String[] args) { int count, total; total = 0; System.out.println ("Adds all even numbers between 2 and x inclusivly."); System.out.print ("x = "); count = Keyboard.readInt(); if (count % 2 != 0) count = count - 1; while (count >= 2) { total = total + count; count = count - 2; } System.out.println ("The sum is " + total); } }