Tag Archives: letter combinations

Generate words of a given length in C#

The example Generate three-letter words in C# uses three nested for loops to generate words that contain three letters. This example uses the following code to generate words of any given length. // Generate words with num_letters letters. private List … Continue reading

Posted in algorithms, mathematics | Tagged , , , , , , , , , , , , | 3 Comments

Generate three-letter words in C#

This example uses the following very simple code to generate three-letter words using the letters a through z. // Make the items. private void Form1_Load(object sender, EventArgs e) { List<string> values = new List<string>(); for (char ch1 = ‘a’; ch1 … Continue reading

Posted in algorithms, mathematics | Tagged , , , , , , , , , , | Leave a comment