Created
December 11, 2018 22:47
-
-
Save bkyrlach/bd2074338aacbf41d266d0cf17f3c643 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| namespace Lesson2 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var definitions = new List<string>() { "verb", "verb", "adjective", "noun" }; | |
| var words = new List<string>(); | |
| for(var i = 0; i < definitions.Count; i = i + 1) | |
| { | |
| var definition = definitions[i]; | |
| Console.Write("Give me a " + definition + "? "); | |
| var word = Console.ReadLine(); | |
| words.Add(word); | |
| } | |
| Console.WriteLine("While Jenny " + words[0] + ", Ben was busy " + words[1] + " to the " + words[2] + " " + words[3] + "."); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment