Question: Rewrite the following for loop into a while loop. int s = 0; for (int i = 1; i
Rewrite the following for loop into a while loop.
int s = 0;
for (int i = 1; i <= 10; i++)
{
s = s + i;
}
Step by Step Solution
3.51 Rating (171 Votes )
There are 3 Steps involved in it
int ... View full answer
Get step-by-step solutions from verified subject matter experts
