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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?