Hi, plan6?

Your newlines are feeding the next getchar. You don't want to read chars, you want to read strings.
Read the documentation, don't use stdio.h, explore the 9 way...

Regards,
adr