Prayer is not just a one way conversation between you and God. It is a connection to God. Prayer is our life line. God can change things in you through prayer if you allow Him. But if you are praying only for people can see you, than that is not sincere. Fasting also can go with prayer and help change you.