Computer Science, asked by aharini345, 1 month ago

(f) Convert the following for loop into while loop.
for (int i = 1; i <= 10; i++)
{
if (i%2== 0)
System.out.println(i);
}
Answer dude!!!!!!!
I'll mark you as brainlist...​

Answers

Answered by pragyamuni
2

Answer:

int i = 1;

while(i <= 10)

{

if(i%2==0)

System.out.println(i);

i++;

}

Similar questions