#include <stdio.h>
#include <math.h>
int main()
{
double a = sin(1/2);
double b = sin(1/3);
double c = sin(1/4);
double sum = a+b+c;
printf("sum = %lf\n",sum);
return 0;
}
为什么sum输出的值为0呢?
寒月映雪
慕粉2027094160
相关分类