Hangman.c
void Hangdraw(int Number)
{
  switch (Number){
    case 0:
      printf("\n\n\n\n\n\n\n"); //6 Lines for the Hangmandrawing, and a newline for formatting
      break;
      
    case 1:
      printf("\n\n\n\n\n ____\n"); //Bottom of the Hangmandrawing
      break;
      
    case 2:
      printf("|\n|\n|\n|\n|\n|____\n");
      break;
      
    case 3:
      printf("____\n|\n|\n|\n|\n|_____\n");
      break;
      
    case 4:
      printf("____\n|  |\n|\n|\n|\n|_____\n");
      break;
      
    case 5:
      printf("____\n|  |\n| |_|\n|\n|\n|_____\n"); 
      break;
      
    case 6:
      printf("____\n|  |\n| |_|\n|  |\n|  |\n|_____\n");
      break;
   
    case 7:
      printf("____\n|  |\n| |_|\n| \\|\n|  |\n|_____\n");
      break;
      
    case 8:
      printf("____\n|  |\n| |_|\n| \\|/\n|  |\n|_____\n");
      break;
      
    case 9:
      printf("____\n|  |\n| |_|\n| \\|/\n|  |\n|_/___\n");
      break;
      
    case 10:
      printf("____\n|  |\n| |_|\n| \\|/\n|  |\n|_/_\\_\n");
      break;      
      
    default:
      printf("An unexpexted error occured!\n");
      break;
  }
}
//Draw the Hangman, Number as Counter how much letters went wrong
Draw the Hangman, Number as Counter how much letters went wrong
Draw the Hangman Number as Counter how much letters went wrong
void Hangdraw(int Number)
{
  switch (Number){
    case 0:
      printf("\n\n\n\n\n\n\n"); 
      break;
    case 1:
      printf("\n\n\n\n\n ____\n"); 
      break;
    case 2:
      printf("|\n|\n|\n|\n|\n|____\n");
      break;
    case 3:
      printf("____\n|\n|\n|\n|\n|_____\n");
      break;
    case 4:
      printf("____\n|  |\n|\n|\n|\n|_____\n");
      break;
    case 5:
      printf("____\n|  |\n| |_|\n|\n|\n|_____\n"); 
      break;
    case 6:
      printf("____\n|  |\n| |_|\n|  |\n|  |\n|_____\n");
      break;
    case 7:
      printf("____\n|  |\n| |_|\n| \\|\n|  |\n|_____\n");
      break;
    case 8:
      printf("____\n|  |\n| |_|\n| \\|/\n|  |\n|_____\n");
      break;
    case 9:
      printf("____\n|  |\n| |_|\n| \\|/\n|  |\n|_/___\n");
      break;
    case 10:
      printf("____\n|  |\n| |_|\n| \\|/\n|  |\n|_/_\\_\n");
      break;      
    default:
      printf("An unexpexted error occured!\n");
      break;
  }
}
void Hangdraw ( int Number ) { switch ( Number ) { case 0 : printf ( " \n \n \n \n \n \n \n " ) ; break ; case 1 : printf ( " \n \n \n \n \n \n " ) ; break ; case 2 : printf ( " \n \n \n \n \n \n " ) ; break ; case 3 : printf ( " \n \n \n \n \n \n " ) ; break ; case 4 : printf ( " \n \n \n \n \n \n " ) ; break ; case 5 : printf ( " \n \n \n \n \n \n " ) ; break ; case 6 : printf ( " \n \n \n \n \n \n " ) ; break ; case 7 : printf ( " \n \n \n \\ \n \n \n " ) ; break ; case 8 : printf ( " \n \n \n \\ \n \n \n " ) ; break ; case 9 : printf ( " \n \n \n \\ \n \n \n " ) ; break ; case 10 : printf ( " \n \n \n \\ \n \n \\ \n " ) ; break ; default : printf ( " \n " ) ; break ; } }
Draw the Hangman, Number as Counter how much letters went wrong
Draw the Hangman Number as Counter how much letters went wrong
//6 Lines for the Hangmandrawing, and a newline for formatting //Bottom of the Hangmandrawing