|
楼主 |
发表于 2005-8-29 12:43:32
|
显示全部楼层
C:\lltoutm>copy atan.c con
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
main()
{
double angle;
/*
double x,y;
double tanv;
printf("X:");
scanf("%lf",&x);
printf("Y:");
scanf("%lf",&y);
printf("%lf/%lf\n",x,y);
tanv = x/y;
printf("%lf\n", tanv);
angle = acos(tanv);
printf("angle = %f\n", angle);
printf("cos:%lf\n", cos(angle));
printf("sina:%lf\n", sin(angle));
*/
int x, y;
x = 10;
y =3;
printf("%f", x/y);
}
已复制 1 个文件。
C:\lltoutm>atan
0.000000
C:\lltoutm> |
|