Question: k 1: Counting Loops using while/for statements Compile & Run the following C program in Dev-C ++. e the source file in a new folder

k 1: Counting Loops using while/for statements Compile \& Run the following C program in Dev-C ++. e the source file in a new folder Lab5 as Lab5/program1.c 1. Draw the flowchart of the program Use pen and paper to draw the flowchart then take a photo and attach it here 3. Run the Debugger on the program several times and write down your observations regarding nested if statement. Obsenvations: 4. Rewrite the two assignment statements appearing inside the loop body using compound assginement operators. Give a short comment about compotand assginement operators Compound assginement operators: 5. Rewrite the two assignment statements appearing inside the loop body using increment/decriment operators (if possible!). Give a short comment about Increment/decriment operators: 6. Rewrite the program using for atatenent: Save the modified program as Lab5/program2. c. Compile and debug the program. Observe the execution flow of the program! 1 C progran for conputing the sunnation: 1+2++N using for statement*f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
