I have to write this program in for one of my classes and part of it has to take in two odd numbers and add the even numbers in between. I'm having trouble writing the loop to only add the even numbers. It always adds them all. Can anyone help?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.