There are multiple relatively easy ways to achieve this.
Manual modelling
Start by adding a circle. Shift
+ a
-> Mesh
-> Circle
Use the menu on the bottom left to set the vertex count (8 is fine, we can subdivide later) and the radius.

press tab
to switch to edit mode. make sure you select all vertices, and extrude them upwards.

position the 3d cursor at the center of the desired radius. you can either shift
+ rmb
or position it via the n-panel on the left.

press space
and type in "spin".

with this, we extrude and rotate the selected vertices with the 3d cursor as center of rotation. In this step you can also adjust the segments. (you have to adjust my settings to suit your setup and angle of rotation.)

Just repeat the steps extruding and spinning in the other direction and you're done.
Use "shade smooth" and subdivision modifier to get smoother results.

Curves
Add a bezier curve. Use e
to extrude new segments and r
to rotate them to get a shape you like.

Use the properties panel to bevel the curves and adjust the resolution.
