fork download
  1. using static System.Console;
  2.  
  3. namespace TesteMatriz1 {
  4. class Program {
  5. static void Main(string[] args) {
  6. var lista = new string[,] { { "Dante", "Sparda" }, { "Vergil", "Sparda" }, { "Nero", "Sparda" } };
  7. for (int i = 0; i < 3; i++) for (int j = 0; j < 2; j++) WriteLine($"Nome: {lista[i, j]}");
  8. }
  9. }
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/407464/101
Success #stdin #stdout 0.02s 15740KB
stdin
Standard input is empty
stdout
Nome: Dante
Nome: Sparda
Nome: Vergil
Nome: Sparda
Nome: Nero
Nome: Sparda