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




Expert's answer

Here is program

int main()
{
    for (char i = 'a'; i <= 'e'; i++)
    {     
            cout << i << endl;
    }
}
LATEST TUTORIALS
APPROVED BY CLIENTS