हिंदी

Give the output of the following program segment: for (i = 5; i <8; i--) System.out.println(i + 1);

Advertisements

प्रश्न

Give the output of the following program segment:

for (i = 5; i <8; i--)
System.out.println(i + 1);

अति संक्षिप्त उत्तर
Advertisements

उत्तर

Output:

6
5
4
3
2
1
0
-1 ...

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Statements and their Scope - EXERCISE [पृष्ठ १६४]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
अध्याय 7 Statements and their Scope
EXERCISE | Q 13. (ii) | पृष्ठ १६४
Advertisements
Share
Notifications



      Forgot password?
Use app×