hello
can you tell me whats wrong with my code?
//im not getting anything close to the right answer!
namespace Array_multiplication
{
class Program
{
static void Main(string[] args)
{
int[,] a = new int[2, 2] { {2, 4}, {3, 5} };
int[,] b = new int[2, 2] { {1, 6}, {4, 8} };
int[,] c = new int[2, 2];
for (int row = 0; row < 2; row++)
{
for (int col = 0; col < 2; col++)
{
for (int i = 0; i < 2; i++)
{
c[row, col] = 0;
c[row, col] = c[row, col] + a[row, i] * b[i, col];
Console.Write(c[row, col] + ” “);
}
}
Console.WriteLine();
}
}
}
}