Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace Articulos.Pregunta.P1220
- {
- public class UsoList
- {
- public static void Main()
- {
- List<string> dinosaurios = new List<string>();
- dinosaurios.Add("Tiranosaurio");
- dinosaurios.Add("Amargasaurio");
- dinosaurios.Add("Mamenchisaurio");
- dinosaurios.Add("Deinonychus");
- dinosaurios.Add("Compsognathus");
- // Recorrido por los elementos de la lista:
- foreach (string dinosaurio in dinosaurios)
- {
- Console.WriteLine (dinosaurio);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement