Question: Write a program with a while loop to print 1 to N in square brackets. N is an integer input from the user.
Part 1: Write the same program using a for-loop
Part 2: Write the same program that will display only the even numbers and odd numbers from 1 to N.
Can you please help me? I don't know what to do to write this C++ program.