Analyze the following program segment and determine how many times the loop will be executed. What will be the output of the program segment?
Advertisements
प्रश्न
Analyze the following program segment and determine how many times the loop will be executed. What will be the output of the program segment?
int k = 1, i = 2;
while (++i < 6)
k *= i;
System.out.println(k);थोडक्यात उत्तर
एका वाक्यात उत्तर
Advertisements
उत्तर
3 times = 60
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
