for (int f = 0; f < 3; f++)
for (int c = 0; c < 3; c++)
Console.Write("Ingrese posicion ["+(f+1)+","+(c+1)+"]: ");
linea = Console.ReadLine();
mat[f, c] = int.Parse(linea);
for (int f = 0; f < 3; f++)
for (int c = 0; c < 3; c++)
Console.Write(mat[f, c] + " ");
public static void Main(string[] args)
Matriz ma = new Matriz();