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

A blessing on the righteous colony of the massachusetts, where iniquity is dragged out into the sunshine! what is the meaning of the word "iniquity"? wickedness
How has technology affected the Curiosity rover’s mission to study the surface of Mars? Check all that apply. Scientists have moved the rover about 5 kilometers
A student ran a distance of miles each day for 5 days. Then the student ran a distance of 44 miles each day for the next 5 days. What was the total distance in
Please help I don't understand!
Which of the following indicates a rodent problem? Rollot like black dronning
How does Jackie feel about moving with her grandparents in brown girl dreaming
The ratio of men to women working for a company is 4 to 5. if there are 135 employees total, how many women work for the company?
Of the first 52 contestants, exactly 12 contestants win the game. How does the actual number of winners compare to the expected number of winners? What needs to
2. Describe the permeability of cell membranes. How to substances cross cellmembranes? Utilize the terms bi-polar, semi-permeable, diffusion, active transport,
During protein synthesis, many copies of a specific mRNA transcript. can be synthesized from a single
good job