Question: 2. for (i- 0; i 2000; i++) 4. Compute the sum of the following numbers: 58, 62, 39, 42,7,17, 28 5. Read in 100 numbers
2. for (i- 0; i 2000; i++) 4. Compute the sum of the following numbers: 58, 62, 39, 42,7,17, 28 5. Read in 100 numbers compute the sum for all the even numbers an com- pute the product for the odd numbers. Name the initialization statement Name the condition state- ment Name the increment state- ment ForLoop Write programming segments that do the following: 6. Convert the 1. Is the For loop a pre-test loop or a post test loop? Justify your answer ment in #5 to a While loop 3. When would you use a For Loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
