how to do this? : ask the user to insert the length of two sides (b and c) of a tringle and the angle between them in degree (x), compute and print the length of the third side,a, by using this formula

a^2=b^2+c^2-2bc(cos(x))

(Note: to use the cosine function(cos), the angle must be in radians instead of degrees. to convert an angle from degree to radians, multiply the angle by pi/180)

help me.thank you~