Learn to Code
John F. Dumas
contact me | resume | how it works | example programs | testimonials | main page

C - Hangman


► Problem: Write a c program to play the game hangman. Choose the secret word randomly from a given list of words.


► Example Output:

Current Guess: * * * T * R E

Enter letter: 
   +----+    
   |    |    
   |    |    
   |    O    
   |    |    
   |  --+--  
   |    |    
   |    +    
   |   / \   
   |  /   \  
   |         

---------------
You Lose
---------------

The Word Was: vulture


Source code

All source files (zip file)


Back to Example Program Index


© John F. Dumas | johnfdumas@gmail.com | main page | top of page