Explanatory Question
Convert the following do…while loop to for loop:
int x = 10;
do
{
x––;
System.out.print(x);
}
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.