Convert the following for loop into a while loop.

int k;
for(k = 25; k > 0; k = k – 3)
printf(“\n%d”, k);

To convert this for loop into a while loop:

int k = 25;
while(k > 0) {
printf(“\n%d”, k);
k = k – 3;
}