Analyze how many times the following loops gets executed and write the output ii. int i; for (i = 50; i >= 10; i -= 10) System.out.println(i); System.out.println(++i*10);
Answers
Answered by
0
Answer:
class Test {
public
static void main(String[] args)
{
int i = 0, j = 9;
do {
i++;
if (j-- < i++) {
break;
}
} while (i < 5);
System.out.println(i + "" + j);
}
}
Similar questions
Social Sciences,
5 months ago
History,
5 months ago
Computer Science,
5 months ago
Science,
10 months ago
Math,
1 year ago
Math,
1 year ago