0

so, we have this school assignement in which we are asked to make a program that would ask you to enter two integers, them the program should add the two integers and all the even integers between them.

example:

integer1: 1

integer2: 10

(1 + 10 + 2 + 4 + 6 + 8) = 31

it is killing me. i understand how "for" is used. but i could not figure out how to construct the solution. i tried including modulo(%) to the solution but really can't program it right. healp me, please. :(