What is the output for the nested for loop - CSharp Language Basics

CSharp examples for Language Basics:for

Description

What is the output for the nested for loop

Demo Code

using System;/*from w w  w.  j a  v  a2 s .co  m*/
class Printing
{
   static void Main()
   {
      for (int i = 1; i <= 10; ++i)
      {
         for (int j = 1; j <= 5; ++j)
         {
            Console.Write('@');
         }
         Console.WriteLine();
      }
   }
}

Result


Related Tutorials