#include <stdio.h>
int main(void)
{
char ch;
do
{
printf("your code is here\n");
printf("Enter a character (Q/q to quit): ");
fseek(stdin, 0, SEEK_END);
ch = getc(stdin);
} while (ch != 'Q' && ch != 'q');
return 0;
}
/*
run:
your code is here
Enter a character (Q/q to quit): a
your code is here
Enter a character (Q/q to quit): b
your code is here
Enter a character (Q/q to quit): ooo
your code is here
Enter a character (Q/q to quit): w
your code is here
Enter a character (Q/q to quit): q
*/