diff --git a/ListChallenge/Program.cs b/ListChallenge/Program.cs index 8bafd1c..c40922b 100644 --- a/ListChallenge/Program.cs +++ b/ListChallenge/Program.cs @@ -6,14 +6,28 @@ namespace ListChallenge { + class Program { + static void Main(string[] args) { - List names = new List { "Will 1", "Will 2", "Ethan"}; - names.Add("Tom"); - Console.WriteLine(names[3]); + Random rnd = new Random(); + + List names = new List { "Will 1", "Will 2", "Ethan", "Adam", "Cormac", "Tom", "Ben", "Henry", "Mr. Dring", "Ashton", "Ethan"}; + List score = new List { }; + + for (int i = 0; i < names.Count(); i++) + { + + score.Add(rnd.Next(100)); + Console.WriteLine(names[i] +" "+score[i]); + + } + + Console.ReadLine(); + } } } diff --git a/README.md b/README.md new file mode 100644 index 0000000..e861e0d --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +## ListChallenge +##### All issues resolved, code working