for an example, user inputs
numOne = 1; numTwo = 20;
the program would then determine if first number was even if not it adds one, the sum of the even numbers between 1 and 20(i dont want it to add the equivalence of numTwo or over it i want it to stop on the even number before it)
would be 2+4+6+8+10+12+14+16+18=90. the sum would then be output to a string to be displayed in the JOptionPane.
it would determine if it was even by
if (numOne % 2 == 0)correct?
i am just wanting some feedback code and ideas because i am having a few problems with my code(once again i dont have it with me) not adding up the right numbers.
Any help would be much appreciated