C# All Possible Three-Letter Words from a Five-Letter Word (Ex 16-6)

Share it with your friends Like

Thanks! Share it with your friends!

Close

Visual C# How to Program
Programming Challenge 16.6: All Possible Three-Letter Words from a Five-Letter Word (C# nested for loops, String.substring)

Write a program that reads a five-letter word from the user and produces all possible three-letter combinations that can be derived from the letters of the five-letter word. For example, the three-letter words produced from the word “bathe” include the commonly used words “ate,” “bat,” “bet,” “tab,” “hat,” “the” and “tea,” and the 3-letter combinations “bth,” “eab,” etc.

Comments

Write a comment

*