Question: Transfer the for loop in the following code segment into an equivalent while loop. int a[10]; int i; for(i=20; i>10; i--) { a[i] = i+1;
Transfer the for loop in the following code segment into an equivalent while loop.
int a[10];
int i;
for(i=20; i>10; i--)
{
a[i] = i+1;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
