#include <stdio.h> // 기본 입출력

#include <math.h>  // 수학 함수 라이브러리 불러오기

#define PI 3.14159265358979323846

void main(void)
{
    double x, y, ret; // x, y 변수 선언

    x = 5;
    y = 5;

    ret = atan(y/ x) ; // ret = 역탄젠트(y/x)

    // ret 값은 radian 이므로 각도(degrees)로 변환한다.
    printf("각도 : %f", ret * 180/PI);
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: