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

identify the slope and y-intercept of the function y= -5x+4
How does a character motivation affect a story’s plot
Which is the function represented by the table?
In your own words, define a tragic hero
20.4 L of 0.650 M HCI reacts with 36L of KOH solution of unknown concentration. What is the molarity of the KOH solution?
What fish is traditionally eaten on the fourth of july?.
Giving sustained focus to things that are important is also known as.
follow the steps to construct a diagram: 1:create points A, B, and C in order on a horizontal line with a distance of four units between successive points.
Sovereignty what is the definition
Objects that are intended to stimulate a sense of beauty in the viewer are thought to be not merely functional but:.