Reward your pet with treats, but only for behavior you want to encourage. For example, if your pet sits quietly at your feet while you cook, offer a treat. If that initiates begging, stop. Don't give in to whining, barking, or loud meows. If it works once, your pet is sure it'll work again if they are persistent.