Is There Any Way I Can Turn My Lose Flabby Man Boob Into Muscle?

because some how my friend was able to do it and i want mine to be the same way but i dont want to gain any weight though

How Do I Turn My Man Boobs To Muscles?

im kinda starting to get skinny but my chest is still man boob looking what do i do?