I am writing an objective c program for hangman. I need to replicate another program which has been given to me. I have done most of it, but am having an issue. It has to replic
Use getchar() after scanf() for avoid newline character left in stdin.
while (i == 0){
printf("\n\n > Please enter a word length: ");
scanf("%d", &wordLength);
getchar();
printf("\n\n");
if (number > 3 && number < 14) {
break;
}
else printf("number must be between 3 and 14 (inclusive)");
}