Curving a cylinder?

I just want a straight cylinder that curves at each end at a 90 degree angle and goes down.

Create a curve, edit it so that it is straight, rename it, oh something like “a” or whatever you want,activate the 3d button while in edit mode, leave edit mode, then deselect it, and select the tube hit F9 then locate the modifiers panel, select the curve modifier in the “ob” Field put the name of the curve you made “a”, then deselect the tube, select the curve, go into edit mode, now reshape the curve and the tube will be changed to match the shape.

Alternatively, just make a torus, delete three quarters of it and extrude the ends to form the straight parts (and then mirror that).

Ya…zwebbie that sounds a lot easier. But thanks to both.