Beruflich Dokumente
Kultur Dokumente
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int x, y;
int[,] matriks1;
int[,] matriks2;
Console.Write("matriks1\n");
Console.WriteLine("---------------");
Console.WriteLine();
}
}
Console.WriteLine();
Console.WriteLine();
for (x = 0; x < 2; x++)
{
for (y = 0; y < 2; y++)
{
Console.Write("Matriks2=");
matriks2[x, y] = int.Parse(Console.ReadLine());
}
}
//tampilan
for (x = 0; x < 2; x++)
{
Console.WriteLine();
Console.WriteLine();
for (y = 0; y < 2; y++)
{
Console.Write(matriks1[x, y]+" ");
}
}
Console.WriteLine();
for (x = 0; x < 2; x++)
{
Console.WriteLine();
Console.WriteLine();
for (y = 0; y < 2; y++)
{
Console.Write(matriks2[x, y] + " ");
}
Console.WriteLine();
Console.WriteLine();
int m1b1k1 = matriks1[x = 0, y = 0];
int m1b1k2 = matriks1[x = 0, y = 1];
int m1b2k1 = matriks1[x = 1, y = 0];
int m1b2k2 = matriks1[x = 1, y = 1];
Console.WriteLine();
Console.ReadKey();
}
}
}