You can get rid of gas pains naturally by massaging your stomach clockwise, or walking about for a while. You can also try making use of a hot-water bag above the abdomen and on the lower back. Flatulence is the consequence of excess air which you get every time you drink and ingest food or saliva. Check out http://www.ehow.com/how_4487926_treat-flatulence-using-home-remedies.html for more information.
An ounce of prevention is worth a pound of cure. First stop eating wrong. Don't mix large amounts of fruits with vegetables. Drink water before or in the middle of the mean and don't eat too much. And try eating mostly grains, beans, dairy products and no meat. Vegetarian diet is the best.