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

You are a cattle rancher whose herd gets its water from the high plains aquifer. where do you live?
How do metal detector make save lives? Explain your answer using the text
write as a single power of the given base. 4^ 2 + 3^3 a. 35 b. 43 c. 97 d. 17
Consider the following research question Research question: Why is yeast used to bake bread? Which hypothesis is based on this research question? A. Some peopl
I consistently tell the truth and am fair with my employees. furthermore, i feel a strong moral obligation to make decisions that do not infrigne on the rights
wich is true of the ten years of warfare between the soviets and Afghanistan?
what is the answer to 3x+2=5
In certain latin american countries during periods of political volatility, children were removed from their families and their parents were executed (then refe
write an equation of a line in slope intercept form that passed through (-8,4) and has a slope of 12
At a pet store, for every 4 male birds there are 7 female birds what is the ratio of female birds to male birds A 4:8B 7:4C 7:11D 11:7