I need to write a program that prints out all the odd or even integers between any two integers (inclusive) entered by the user. The user should be able to select whether odd or even integers are to be printed. Use a while loop to force correct entry for the odd/even choice (use type char for choice).
The program should contain two ways for printing integers, and automatically produce two outputs (which obviously must be identical); these two ways are in seperate functions.
a. The first way your code should contain the odd/even conditional statements before a while loop, and use a loop increment of two.
b. In the second way the odd/even conditional statement(s) should be inside the while loop, which should use a loop increment of one.
I have one mroe part to complete and am struggling slightly with how to make it work - I need to put the odd/even statements before a while loop and use a loop increment of two. Any help would be so so grateful!