Ask Question
3 June, 21:33

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. 4 June, 00:26
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers