#include<stdio.h>
#include<math.h>

int main(void){
double a,b,c,d,e,f;

printf("X=");<br>scanf("%lf", &a);
printf("Y=");<br>scanf("%lf", &b);
printf("Z=");<br>scanf("%lf", &c);

if(pow(a,2)+pow(b,2)+pow(c,2)<=1800 && a>=0 && b>=0 && c>=0){
d=atan(c/sqrt(pow(a,2)+pow(b,2))+acos(60/sqrt(pow(a,2)+pow(b,2)+pow(c,2))));
e=atan(b/a);
f=2*asin(60/sqrt(pow(a,2)+pow(b,2)+pow(c,2)));
printf("(%lf, %lf, %lf)\n", d, e, f);

}else{
printf("It's not right coordinate.");}
return 0;}


결과 값은 바꼇는데 같은 결과만 나옴