I think the only approach is the direct approach. Tell them "As a friend I want to let you know that your body odor is offensive, maybe more showers of deodorant will help..."