मराठी

Write the output of the following program codes. int r = 0, с = 0; for ( r = 1; r <= 6; r++ ) { for(c=6; с>= r; c--)System.out.print(" "+c) ; } System.out.println ();

Advertisements
Advertisements

प्रश्न

Write the output of the following program code.

int r=0, с=0;
for (r=1; r<=6; r++)
{
    for(c=6; с>= r; c--)
    {
       System.out.print(" "+c) ;
    }
    System.out.println ();
}
अति संक्षिप्त उत्तर
Advertisements

उत्तर

6 5 4 3 2 1
6 5 4 3 2
6 5 4 3
6 5 4
6 5
1
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Revision of Class 9 Syllabus - Exercises [पृष्ठ ४८]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 1 Revision of Class 9 Syllabus
Exercises | Q 7. (i) | पृष्ठ ४८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×