How do I get a flat stomach?

I want a flat stomach, and have no idea how to get one. I would also like my legs to not touch. Is this possible. Please help!