I need to create a program that reads in 2 integers and finds the range. With this it then produces the sum of all the odd numbers within the range. Can anyone help me out with this problem?
Printable View
I need to create a program that reads in 2 integers and finds the range. With this it then produces the sum of all the odd numbers within the range. Can anyone help me out with this problem?
What have you tried? Where exactly are you stuck? Write out how you would do this by hand. That's your algorithm. Then translate this into code. See
http://www.javaprogrammingforums.com...e-posting.html