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
English,
3 months ago
Social Sciences,
7 months ago
Computer Science,
7 months ago
Math,
1 year ago
Science,
1 year ago