Design and implement an application that reads an integer value and prints the //sum of all even integers between 2 and the input value, inclusive. Print an error message //if the input value is less than 2. Prompt accordingly.

Right now for the following problem i have this:

import java.util.Scanner;

public class Multiples
// Prints multiples of a user-specified number up to a user-
// specified limit.
public static void main (String[] args)
final int PER_LINE = 1;
int value, limit, mult, count = 0;

Scanner scan = new Scanner (;

System.out.print ("Enter a value: ");
value = scan.nextInt();

limit = scan.nextInt();
mult = scan.nextInt();

System.out.println ();
System.out.println ("The sum of the even numbers between 2 and " + mult + " (inclusive) are:");

for (mult = value; mult <= limit; mult+= value)
System.out.print (mult + "\t");
if (count % PER_LINE == 0)


as of right now all i can do is enter the value, hit return andnothing happens.

how can i after entering the value, it adds up all the even numbers between 2 and the value entered?