Question: Task: Write a program to play hangman. In hangman, one player thinks of a word and the other tries to guess the word by guessing

Task: Write a program to play hangman. In hangman, one player thinks of a word and the other tries to guess the word by guessing one letter at a time. The guesser is allowed a fixed number of missed letters such as six; if the word is not guessed before six misses, the guesser loses. Hint: To read an input character, use this C snippet: char letter; printf("enter a letter: "); scanf(" %c", &letter); printf( "You've entered the letter %c ", letter); The prototypes for the printf () and scanf() C Standard Library functions are defined in the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
