Read carefully: Plagiarized assignment will get a ZERO. You cannot change the variable names of other
student’s solution and submit it as yours. The program structure of other students must not match yours.
You are not allowed to collaborate with other students in solving this assignment. Every student has to
come up with his/her own solution. If you have any questions, you must talk to the lab instructor. Any
cheating (e.g. copying from internet) is a serious violation of the University student code and will be dealt
with very seriously.
Instructions for submission: Add the following to your .c file: (1) your full name (2) Algorithm
(3) Comments are must and they should be brief.
Problem 1 (10 points):
Write a program with a while loop to print 1 to N in square brackets. N is an integer input from
the user.
(i) Write the same program using a for-loop
(ii) Write the same program that will display only the even numbers and odd numbers
Example of Output (Expected output as well):
from 1 to N.
Pro