Advertisements
Advertisements
प्रश्न
Give the output of the following program segment and also mention the number of times the loop is executed.
int a, b;
for (a = 6; b = 4; a <= 4; a = a + 6)
{
if (a % b == 0)
break;
}
System.out.println(a);
थोडक्यात उत्तर
उत्तर
6
The loop executes 0 times.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?