For the first example, you should have two loops and one condition:
first, check if there are any leap years in between the inputs. If there are not, exit.
Set a counter equal to the first input.
The first loop should increment the counter until it is a multiple of four, as in modulus 4 = 0.
The second loop should print the counter out, add 4 to it, and then exit if it is greater than the second counter.
Of course, there are probably more efficient algorithms, but this should work.
The second one should be easy.
as for the do while loop:
1 2 3 4 5 6
do
{
//something
}
while ( /* condition */ ); /* what this does is the same as a while loop,
except it checks the condition after it excecutes the stuff in the "do {}". */