Gas and bloating

Is there anything that can be done for the painful gas and bloating? It's so uncomfortable and painful. I can't think of anything else. Any help/advice would be appreciated.