wilder_alpha

wilder_alpha
Turn-in directory07_wilder_alpha/
Files to turn inwilder_alpha.c
Allowed functionsputchar
  • Write a program which displays the alphabet based on the starting character in variable start_char, followed by a newline. Use the following rules:
    • If the starting character is lowercase, display a maximum of 10 letters. If the starting character is uppercase, display a maximum of 12 letters.
    • 2 Lowercase characters are always followed by an uppercase character. Uppercase characters are always alone.
    • Lowercase characters don't like to be alone, always try to display them in pairs. An exception can be made for the last one.
  • Your programs needs to have a variable called start_char, by default it will hold the character 'C'. Changing this value changes the output of your program. The value can be set to any lower or uppercase letter.

Example output:

$ ./a.out # using start_char = 'C'
CdeFghIjkLmn
$ ./a.out # using start_char = 't'
tuVwxYz
$