The sum is supposed to be all of the even numbers between 2 and the number which the user inputs. The user input number is also included in the sum. So basically if the user inputs say, 10, the sum...
Type: Posts; User: Selereth
The sum is supposed to be all of the even numbers between 2 and the number which the user inputs. The user input number is also included in the sum. So basically if the user inputs say, 10, the sum...
import java.util.*;
public class SumOfAllEvens {
public static void main (String[] args)
{
Scanner s = new Scanner (System.in);
//for (int i=1; i<4; i++){