Ask Question
24 October, 03:01

Write a loop that displays all possible combinations of two letters where the letters are 'a', or 'b', or 'c', or 'd', or 'e'. the combinations should be displayed in ascending alphabetical order: aa ab ac ad ae ba bb ... ee

+4
Answers (1)
  1. 24 October, 04:32
    0
    for (char first = 'a'; first < = 'e'; first++) {

    for (char second = 'a'; second < = 'e'; second++) {

    printf ("%c%c/n", first, second);

    }

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a loop that displays all possible combinations of two letters where the letters are 'a', or 'b', or 'c', or 'd', or 'e'. the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers