Question
Plz, if you do not know what u are doing do not answer this question. I do have a clue of what is going on
Plz, if you do not know what u are doing do not answer this question. I do have a clue of what is going on and will not give you a good rating just bc you answered it. I am trying to check my answer.
Trace the for loops below in the table to the right. If the loop is an infinite loop, trace three iterations and write infinite loop.
a) int sum = 0;
for (int count = 3; count >= 17; count = count + 4)
{
sum = sum + count;
}
b) int sum = 0;
for (int index = 1; index < 5; ++index)
{
sum = sum + (1 /index);
}
c) int product = 2;
for (int count = 0; product > 0; ++count)
{
product = product * product;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started