Set aside a time when they aren't busy or distracted and just tell them. Everyone gets a bad grade once a while. Explain what happened (you didn't understand the material, didn't study hard enough, etc.) and tell them you will try harder next time. They will be mad for a little but they will get over it, they are your parents after all.