Eating right and working out has no doubt helped me change my body for the better (and still is), but man the gas, oh the gas. Does anyone else have this problem?

I'm so flatulant that I'm often scared for people to come around me during most of the day. I think one of my main problems may be meal replacement bars, but I'm not 100% sure. Does anyone know of anything I can do to remedy this?