Computer Science, asked by rahul8915, 9 months ago

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 memanan03
0

int p=30, i=10;

while (i >= 2)

{

// statement

i- = 2;

}

p++;

system.out.println(p);

Similar questions