How do you tell someone they got a bad breath?

It is not always easy to tell someone when they have bad breath or even bad odour but sometimes, it just has to be said.

I tend to just tell someone if they do as I would feel bad if I knew and didn't say anything to them.