What does this program do? Nested for loop - CSharp Language Basics

CSharp examples for Language Basics:for

Description

What does this program do? Nested for loop

Demo Code


class AClass//from  w ww .  j a va 2  s.  c  o  m
{
   static void Main()
   {
      int x,y;
      for ( x = 0; x < 10; x++, System.Console.Write( "\n" ) )
          for ( y = 0; y < 10; y++ )
              System.Console.Write( "X" );
    }
}

Result


Related Tutorials