harish reddy

harish reddy

  • NA
  • 162
  • 30.8k

Row and Colums excercise

Nov 20 2017 8:48 AM
 In the below program if i give n=3, i get 1,2,3 equally in rows and colums. My question is how is the system identifying the row and colums...
 
int n = int.Parse(Console.ReadLine());
for (int row=1 ; row<=n; row++)
{
for (int column = 1; column <= n; column++)
{
Console.Write(" " + column);
}
Console.WriteLine();
}
 

Answers (1)