How can I stop flatulence?

Change of diet/check. You need to go over your diet and avoid the foods that are responsible for the symptoms it may be lactose intolerance, high fiber diet, meds you are taking, constipation etc.Check with your doctor to find the cause if change in food habit does not help.