Give the output of the following program segment: for (int i = 10; i> 6; i = i - 2) System.out.println(i);
Advertisements
प्रश्न
Give the output of the following program segment:
for (int i = 10; i> 6; i = i - 2) System.out.println(i);
अति संक्षिप्त उत्तर
Advertisements
उत्तर
Output:
10
8
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Statements and their Scope - EXERCISE [पृष्ठ १६४]
