- Home
- Output Questions for Class 10 ICSE Computer Applications
Give the output of the following program segment and also
Output Questions for Class 10 ICSE Computer Applications
Give the output of the following program segment and also mention the number of times the loop is executed:
int x, y;
for (x = 9, y = 4; x <= 45; x+=9) {
if (x % y == 0)
break;
}
System.out.println(x);