I am currently working on a problem in which I have to perform both the classification and regression in one problem but I am not able how to perform it

# Which algorithm should be use for both classification and regression

Why do you want to apply the same algorithm on both regression and classification problem. Generally algorithms either perform well on classification problem or regression problem. In case you still want a single algorithm, you can try gradient Boosting which works reasonably well on both.