Coughing can be due to a viral infection, common cold, flu and smoking or health problems such as asthma, tuberculosis and lung cancer.