The "atan2" function is used for calcution of the arc tangent(x/y) value of a given input.
double atan2(double x,double y);
The "atan2" function accepts 2 parameters
#include <stdio.h> #include <math.h> #include <conio.h> int main() { double x,y,tan2; clrscr(); printf("\nEnter the numerator : "); scanf("%lf",&x); printf("\nEnter the denominator : "); scanf("%lf",&y); tan2 = atan2(x,y); printf("The atan2 value is %lf\n", tan2); getch(); return 0; }