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
3
int i = 2;
while (i <= 10) {
System.out.println(i);
i += 2;
}
System.out.println("End");
Similar questions
Math,
2 months ago
Physics,
2 months ago
Math,
2 months ago
Social Sciences,
5 months ago
Computer Science,
5 months ago
Math,
11 months ago
Science,
11 months ago