24
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
//two dimensional array declared and initiliazed
8
int row=2;
9
int columns=4;
10
int[,] matrix = new int[2,4]{
11
{0, 2, 4, 8}, // row 0 values
12
{10, 12, 14, 16}, // row 1 values
13
};
14
15
16
for (int i=0; i<row; i++)
17
{
18
for (int j=0; j<columns; j++)
19
{
20
Console.WriteLine(" Row "+i+ " , column "+j +" value ="+matrix[i, j]);
21
}
22
}
23
}
24
}
Cached Result
Compilation error (line 13, col 36): Invalid expression term '<'
Compilation error (line 17, col 10): ; expected
Compilation error (line 17, col 19): ; expected
Compilation error (line 17, col 19): Invalid expression term '>'
Compilation error (line 17, col 20): Invalid expression term ';'
Compilation error (line 20, col 29): Invalid expression term '<'
Compilation error (line 20, col 36): ; expected
Compilation error (line 20, col 45): ; expected
Compilation error (line 20, col 45): Invalid expression term '>'
Compilation error (line 20, col 46): Invalid expression term ';'
Compilation error (line 23, col 28): Invalid expression term '<'
Compilation error (line 23, col 35): ; expected
Compilation error (line 23, col 44): ; expected
Compilation error (line 23, col 44): Invalid expression term '>'
Compilation error (line 23, col 45): Invalid expression term ';'
Compilation error (line 27, col 38): Invalid expression term '<'
Compilation error (line 27, col 45): ; expected
Compilation error (line 27, col 54): ; expected
Compilation error (line 27, col 54): Invalid expression term '>'
Compilation error (line 27, col 55): Invalid expression term ';'
Compilation error (line 17, col 4): The name 'write' does not exist in the current context
Compilation error (line 17, col 10): The type or namespace name 'code' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 20, col 30): The name 'write' does not exist in the current context
Compilation error (line 20, col 36): The type or namespace name 'code' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 20, col 41): A local variable or function named 'here' is already defined in this scope
Compilation error (line 23, col 29): The name 'write' does not exist in the current context
Compilation error (line 23, col 35): The type or namespace name 'code' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 23, col 40): A local variable or function named 'here' is already defined in this scope
Compilation error (line 27, col 39): The name 'write' does not exist in the current context
Compilation error (line 27, col 45): The type or namespace name 'code' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 27, col 50): A local variable or function named 'here' is already defined in this scope
Compilation error (line 17, col 15): The variable 'here' is declared but never used
Compilation error (line 20, col 41): The variable 'here' is declared but never used
Compilation error (line 23, col 40): The variable 'here' is declared but never used
Compilation error (line 27, col 50): The variable 'here' is declared but never used
Compilation error (line 11, col 27): This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Compilation error (line 17, col 10): ; expected
Compilation error (line 17, col 19): ; expected
Compilation error (line 17, col 19): Invalid expression term '>'
Compilation error (line 17, col 20): Invalid expression term ';'
Compilation error (line 20, col 29): Invalid expression term '<'
Compilation error (line 20, col 36): ; expected
Compilation error (line 20, col 45): ; expected
Compilation error (line 20, col 45): Invalid expression term '>'
Compilation error (line 20, col 46): Invalid expression term ';'
Compilation error (line 23, col 28): Invalid expression term '<'
Compilation error (line 23, col 35): ; expected
Compilation error (line 23, col 44): ; expected
Compilation error (line 23, col 44): Invalid expression term '>'
Compilation error (line 23, col 45): Invalid expression term ';'
Compilation error (line 27, col 38): Invalid expression term '<'
Compilation error (line 27, col 45): ; expected
Compilation error (line 27, col 54): ; expected
Compilation error (line 27, col 54): Invalid expression term '>'
Compilation error (line 27, col 55): Invalid expression term ';'
Compilation error (line 17, col 4): The name 'write' does not exist in the current context
Compilation error (line 17, col 10): The type or namespace name 'code' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 20, col 30): The name 'write' does not exist in the current context
Compilation error (line 20, col 36): The type or namespace name 'code' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 20, col 41): A local variable or function named 'here' is already defined in this scope
Compilation error (line 23, col 29): The name 'write' does not exist in the current context
Compilation error (line 23, col 35): The type or namespace name 'code' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 23, col 40): A local variable or function named 'here' is already defined in this scope
Compilation error (line 27, col 39): The name 'write' does not exist in the current context
Compilation error (line 27, col 45): The type or namespace name 'code' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 27, col 50): A local variable or function named 'here' is already defined in this scope
Compilation error (line 17, col 15): The variable 'here' is declared but never used
Compilation error (line 20, col 41): The variable 'here' is declared but never used
Compilation error (line 23, col 40): The variable 'here' is declared but never used
Compilation error (line 27, col 50): The variable 'here' is declared but never used
Compilation error (line 11, col 27): This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.