One of the first pitfalls in C is scanf().
It works as expected for numbers, and strings, but not for single char's.
After you take in a char with scanf(), you leave a newline char ('\n'), at the head of the keyboard buffer.
Now when scanf() goes to look for the next single char, it see's this old newline char, and says "Great, I've found my char!", and rolls on. It will look your code is "skipping" over the scanf(), completely.
Two fixes:
1) add a variable = getchar() before each scanf() for a single char, or
2) add a single space, in your scanf(),
not this:
Code:
scanf("%c", &myChar);
but this:
Code:
scanf(" %c", &myChar);
Note the single extra space, before the second % sign. Makes all the difference.
Note that I did not look at the rest of your code, after I saw the scanf() for a single char, in it. This is a *very* frequent problem for new programmers in C.