Joke Collection Website - Bulletin headlines - Does c language coordinate function use f

Does c language coordinate function use f

The coordinate function of c language can be F.

1. Write a program to convert rectangular coordinate values into polar coordinates. The formula of polar coordinates is:

c= sqrt(x*x+y*y),q=arctan(y/x)

The function f is defined as void fun (double x, double y, double * c, double * q), where x and y are input rectangular coordinates, and pointers c and q are used to return the calculated polar coordinate values.

The main program reads x, y and outputs c and q, where c and q retain two decimal places.