You should use an editor or an IDE which can autoformat/autoindent entire source files. If you had such a thing, you would have immediately seen the problem, because your code would look like this:
int main()
{
char mychar;
while(1)
printf("Enter a characater:\n");
scanf("%c", &mychar);
printf("%c", &mychar)
}
And this is a mistake even experienced C programmers sometimes make, so having the simple cure (autoindent/autoformat code) for it is important even in future.
Unrelated problem, you pass pointer to char for %c
format specifier in your latter printf
. You should enable warnings on your compiler, it would warn you about that.