Question: Must be coded in C++ Loop Equivalence Using the compiler or paper and pencil, rewrite the following while loop as an equivalent for loop. You
Must be coded in C++
Loop Equivalence
Using the compiler or paper and pencil, rewrite the following while loop as an equivalent for loop. You and your partner should first do this individually. When both of you are done, compare answers, and come up with a common answer that both of you agree on.
inti = 1;int
total = 0;while( i < 100 )
{
total += i;
i++;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
