Rewrite the following for loop into a while loop. int s = 0; for (int i =

Question:

Rewrite the following for loop into a while loop.


int s = 0;
for (int i = 1; i <= 10; i++)
{
s = s + i;
}

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: