(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
2
Answer:
int i = 1;
while(i <= 10)
{
if(i%2==0)
System.out.println(i);
i++;
}
Similar questions