using System.Collections.Generic;
public static void Main()
List<string> words = new List<string>(){ "test", "this", "code", "because", "it", "is", "awesome" };
public static void wordWrap(int cols, int rows, List<string> words) {
if (cols == 0 || words.Count == 0) return;
List<string> wordsInRow = new List<string>();
string word = words[i++ % words.Count];
if (word.Length > colsLeft) {
if (word.Length > cols) {
Console.WriteLine("---Words don't fit the column");
Console.WriteLine(string.Join(" ", wordsInRow));
colsLeft -= word.Length + 1;