Ask the user what type of conversion they want to perform - Binary to Decimal or Decimal to Binary. If they enter a choice that is not one that is given, ask them again until they give a valid input.