whitewater4020 whitewater4020
  • 14-04-2020
  • Computers and Technology
contestada

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

Respuesta :

yakubuemmanuel432
yakubuemmanuel432 yakubuemmanuel432
  • 16-04-2020

Answer:

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

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

cout << outerChar << innerChar << "\n";

}

}

Answer Link

Otras preguntas

what is 35 5/7 multiplied by 3.14 or multiplied by 22/7
President Woodrow Wilson's statement "The world must be made safe for democracy" was made to justify his decision toa. end United States imperialism in Latin Am
How would you describe the change in the arrangement of particles as heat energy and temperature increase?
The northern shore of long Island is built of mounds of glacial till that north shore beaches are rocky with steep bluffs. The south shore is very different. Mo
Describe an example of a fossil that consists of an entire organism
Help me please >.< ---------------------
What is (2x-3) squared?
How does Sac Fungi move?
what were some of the common occupations,cultural practice and traditions in the south Carolina  colony
In 8/100 what is the percent