How to make a cylinder have rounded sides

Thanks all.

I understand how to make the above shape, but that you. What I’m looking for is once I have the cylinder can I then round the side walls so it has like a doughnut shape.