I have written this code to get array values from user and display them.
namespace Program_2
{
class Program
{
static void Main(string[] args)
{
int[,] nums = new int[6,2];
for (int x = 0; x < 5; x++)
{
for (int y = 0; y < 2; y++)
{
Console.WriteLine("Enter Numbers");
nums[x, y] = int.Parse(Console.ReadLine());
}
}
for(int j=0; j < 5; j++)
{
for(int k = 0; k < 2; k++)
{
Console.Write(nums[j, k]+" ");
}
Console.WriteLine("");
}
Console.ReadLine();
}
}
}
But I want to know that how can I do Multiplication and Addition of arrays that was entered by the user.
Like this "See this image"