Skip to content

Instantly share code, notes, and snippets.

@bkyrlach
Created December 11, 2018 22:47
Show Gist options
  • Select an option

  • Save bkyrlach/bd2074338aacbf41d266d0cf17f3c643 to your computer and use it in GitHub Desktop.

Select an option

Save bkyrlach/bd2074338aacbf41d266d0cf17f3c643 to your computer and use it in GitHub Desktop.
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