Worms are known to cause a variety of uncomfortable side effects. These may consist of stomach aches, diarrhea, and loss of appetite. If you suspect you have a gut problem, it's important to speak with a doctor for diagnosis and treatment. One effective medication used to eliminate worms is mebendazole. It acts on interfering with the worms' abili