Answer to Question #310652 in C++ for john

Question #310652

2. Flag Ceremony

by CodeChum Admin

It's quite nostalgic to remember of our elementary days where we used to line up in one straight line first thing in the morning for the daily flag ceremony, right?


Well, since I’m getting so sentimental, let’s make five randomly inputted characters fall in line using code, shall we?


Input

Five lines containing a character on each.

a
b
c
d
e




1
Expert's answer
2022-03-13T15:11:30-0400

Here is program

int main()
{
    for (char i = 'a'; i <= 'e'; i++)
    {     
            cout << i << endl;
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment