Computer Science, asked by zehra9545, 5 months ago

Rewrite the given code using while loop
int i;
for(i=2;i<=10; i+=2)
System.out.println(i);
System.out.println("End");​

Answers

Answered by jai696
3

\large\mathsf\color{pink}{Solution\: using\: Java}

int i = 2;

while (i <= 10) {

System.out.println(i);

i += 2;

}

System.out.println("End");

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions