cristinaledford6927 cristinaledford6927
  • 07-07-2017
  • 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 bb ... ee

Respuesta :

tonb
tonb tonb
  • 10-07-2017
for (char first = 'a'; first <= 'e'; first++) {    
   for (char second = 'a'; second <= 'e'; second++) {
      printf("%c%c\n", first, second);    
   }
}
Answer Link

Otras preguntas

wht is 78.852 rounded to the nearest tenth
I just need help to solve these steps. 8 to the 2 power +9(12/ 3*2)-7 I know the answer is 129 but I'm not sure of the steps to get to it.
What emerging relationship trend between negative campaign tone and voter turnout is depicted on the graph starting in 1988? NO As negative ads have steadily de
At sunrise,the outside temperature was 1 Celsius below zero by lunch time,the temperature rose by 17 Celsius and then fell by 4 Celsius by night. What was the t
According to one major language theory, how did different groups develop their own languages?
What is the radius of the circle given the equation x2 - 6x + y2 + 10y + 18 = 0?
What are the units to the problems
these types of writers start off writing with an existing plan
Black friday occurred on october 29, 1939. a. true b. false
What number is 15% of 130