Write the same program using a for-loop - write the same


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.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write the same program using a for-loop - write the same
Reference No:- TGS0962004

Expected delivery within 24 Hours