Computer Science, asked by minnikookie, 1 month ago

How many times are the following loop bodies repeated? What is the final output in each case?

i. int x = 1;
while (x < 10)
if (x % 2 == 0)
System.out.println(x);
ii. int y = 1;
while (y < 10)
if (y % 2 == 0)
System.out.println(y++);
iii. int z = 1;
while (z < 10)
if ((z++) % 2 == 0)
System.out.println(z);

Answers

Answered by ayush1365gupta
0

Answer:

Catalog Name:*Colorful Cleaning Gloves*

Material: Rubber

Size: Free Size

Dispatch: 2-3 Days

Easy Returns Available In Case Of Any Issue

Similar questions