Search:

Type: Posts; User: Selereth

Search: Search took 0.09 seconds.

  1. Re: How to add all even numbers between 2 and a user input number which is included in the Addition

    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...
  2. How to add all even numbers between 2 and a user input number which is included in the Addition

    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++){
Results 1 to 2 of 2