Question: Convert the following while loop to an equivalent do loop. (in java) int n = 0; while (n < 14) { n +=2; System.out.println(n); }
Convert the following while loop to an equivalent do loop. (in java)
int n = 0;
while (n < 14)
{
n +=2;
System.out.println(n);
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
