int main(void) {
	int toothpicks = 21;
	int humanmove;
	int computermove;
	printf ("To give the computer the first move, type 0 as your first move\n");
	while (toothpicks > 0) {

		printf ("There are %d toothpicks.  How many do you want?", toothpicks);
  		scanf("%d", &humanmove);

		toothpicks = toothpicks - humanmove;
    		printf ("You took %d toothpicks.  There are %d left.\n", humanmove, toothpicks);
		if (toothpicks <= 0) {
			printf ("CHOMP!  You lose!!\n");
			break;
		}
		computermove = 2;

		toothpicks = toothpicks - computermove;
    		printf ("I take %d.\n", computermove);
		if (toothpicks <= 0) {
			printf ("CHOMP!  I lose!!\n");
			break;
		}
	}

  return 0;
}


			