Created
May 16, 2012 00:44
-
-
Save marcioalthmann/2706357 to your computer and use it in GitHub Desktop.
Strings duplicadas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nomes = new List<string>(); | |
for (int i = 0; i < 1000; i++) | |
{ | |
nomes.Add("Althmann"); | |
} | |
Console.WriteLine("Digite o mesmo texto várias vezes."); | |
while (true) | |
{ | |
nomes.Add(Console.ReadLine()); | |
} | |
Console.Read(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment