smooth 0-10v output

i have already an Lm 358n and an Lm 741, i am thinking of using two 10k res as Rf and Rin connected to the invrerting input and a 22k res and 0,47u cap at the non-inverting input.
But reading older posts they say that using a simple npn transistor can do the same job.