Write the equivalent while loop for the following code:
int p=30; for(int i=10;i>=2;i-=2){p++;System.out.println(p);}
Answers
Answered by
0
int p=30, i=10;
while (i >= 2)
{
// statement
i- = 2;
}
p++;
system.out.println(p);
Similar questions