1
Answer

Row and Colums excercise

harish reddy

harish reddy

7y
142
1
 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)
0
Sujeet Singh
NA 129 0 7y
this is usually means one of two things:
  1. There is some very unusual code path which, when taken, always causes a crash
  2. A race condition exists between threads in your program. Thus, the crash appears unpredictably and may be difficult to reproduce

My advice to you is to start the program in the debugger, and leave it running until the exception is thrown. Then you can come back here and provide us with the relevant code, stack trace, debug output, etc.