मराठी

Write the output of the following program code. int r=0, c=0; for (r=9; r>=5; r--) { for(c=9; c>=r; c--) { System.out.print(" " + c); } System.out.println (); }

Advertisements
Advertisements

प्रश्न

Write the output of the following program code.

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

उत्तर

9
9 8
9 8 7
9 8 7 6
9 8 7 6 5
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. (iv) | पृष्ठ ४९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×