In most programming languages, a loop is consists of three components: initialization, condition, and increment/decrement. Explain more about these THREE (3) loop components.
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. Initialization - to initialize the starting point for the loop.
2. Evaluation - To make a condition for the loop to make decision if the loop should keep going or stop.
3. increment/decrement - updates the loop control variable after each iteration
2. Evaluation - To make a condition for the loop to make decision if the loop should keep going or stop.
3. increment/decrement - updates the loop control variable after each iteration
In reply to AISYAH SUHAILLA BINTI JILI
Re: Question 1
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. Initialization
2. Evaluation
3. Increment / Decrement
2. Evaluation
3. Increment / Decrement
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. Initialization - to initialize the starting point for the loop.
2. Evaluation - to make a condition for the loop to make decision if the loop should keep going or stop.
3. Increment/Decrement - updates the loop control variable after each iteration
2. Evaluation - to make a condition for the loop to make decision if the loop should keep going or stop.
3. Increment/Decrement - updates the loop control variable after each iteration
1. initialize
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. initialization = declare the starting point of the loop
2. evaluation =determines how long the loop will run and repeat
3. increment/decrement =updates the loop variable after each iteration where increment will increase the value and decrement will decrease the value
2. evaluation =determines how long the loop will run and repeat
3. increment/decrement =updates the loop variable after each iteration where increment will increase the value and decrement will decrease the value
1. Initialization
2. Evaluation
3. Increment / Decrement
2. Evaluation
3. Increment / Decrement
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1.initialization
2.evaluation
3.increment/decrement
2.evaluation
3.increment/decrement
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. initialization
2. evaluation
3. increment/decrement
2. evaluation
3. increment/decrement
1. Initialization
2. Evaluation
3. Increment / Decrement
2. Evaluation
3. Increment / Decrement
1. Initialization - to initialize the starting point for the loop.
2. Evaluation - To make a condition for the loop to make decision if the loop should keep going or stop.
3. increment/decrement - updates the loop control variable after each iteration
2. Evaluation - To make a condition for the loop to make decision if the loop should keep going or stop.
3. increment/decrement - updates the loop control variable after each iteration
1. Initialization - to initialize the starting point for the loop.
2. Evaluation - to make a condition for the loop to make decision if the loop should keep going or stop.
3. Increment/ Decrement - updates the loop control variable after each iteration.
2. Evaluation - to make a condition for the loop to make decision if the loop should keep going or stop.
3. Increment/ Decrement - updates the loop control variable after each iteration.
1. Initialization
2. Evaluation
3. Increment/decrement
2. Evaluation
3. Increment/decrement