Pineapple contains enzymes which have strong anti-inflammatory properties that help you stop coughing. The bottom of the pineapple is the best area to smell if you want to determine whether or not it is ripe, because it is the most aromatic part of the fruit. However, it if has a pungent, sour smell then the pineapple has gone bad.