static void indent(string text, int indentLevel) { for (int i = 0; i < indentLevel; i++) { Console.Write(" "); } Console.WriteLine(text.Substring(0, Math.Min(79 - indentLevel * 2, text.Length))); }
static void indent(string text, int indentLevel) { for (int i = 0; i < indentLevel; i++) { Console.Write(" "); } Console.WriteLine(text.Substring(0, Math.Min(79 - indentLevel * 2, text.Length))); }