static void Main(string[] args) { FunConsole console = new FunConsole(); ProgramUI ui = new ProgramUI(console); ui.Run(); }
public void ForLoops() { string greeting = "Hello World!"; foreach (char letter in greeting) { Console.WriteLine(letter); } List <string> stringList = new List <string>(); stringList.Add("Hello"); stringList.Add("world"); stringList.Add("banana"); foreach (string word in stringList) { Console.WriteLine(word); } Random randy = new Random(); for (int i = 0; i != 5; i = randy.Next(0, 21)) { if (i == 5) { FunConsole console = new FunConsole("Ashley"); console.WriteLine("FIVE!!"); } Console.WriteLine(i); } }