Thanks for query.
It seems that you are having viral infection in the lungs resulting long duration of cough
Nothing to worry,many a times infection remains for so much long time.
Continue with cough suppressant syrup.
Avoid fried and junk food.
I would suggest for X ray
chest and complete blood count
Nothing to worry about cancer.
Ok and bye.