These symptoms can be due to common cold or allergy.
Cold symptoms usually last a few days to a week, while allergy symptoms last much longer.
If you spit yellow-green sputum, have fever, you may have a case of pneumonia.
Coughing with nasal congestion, and nasal greenish discharge, can be a sinusitis.
Allergy and common cold can trigger sinusitis.
If your coughing brings out greenish sputum, visit your physician!