Question: the top of my stomach hurts when i cough?
Answer: Pneumonia is an infection in your lungs that can inflame your air sacs and fill them with fluid or pus. It can be mild to life-threatening. Pneumonia can lead to chest pain when you breathe or cough, which may cause pain in either side of your upper abdomen.