Explanatory Question
Convert following do-while loop into for loop.
int i = 1;
int d = 5;
do {
d=d*2;
System.out.println(d);
i++ ; } while ( i<=5);
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.