#include<math.h>
#include<stdio.h> include
Void main()
{
double x,s;
printf(“input number:\n”);
scanf("1f”,&x);
s=sin(x); /求x的正弦,并把它赋给s/
printf(“sine of & 1f is &1f\n”,x,s);
return 0;
}
c语言,输入x,求sinx并在显示出来
于 2021-12-28 15:17:34 首次发布
#include<math.h>
#include<stdio.h> include
Void main()
{
double x,s;
printf(“input number:\n”);
scanf("1f”,&x);
s=sin(x); /求x的正弦,并把它赋给s/
printf(“sine of & 1f is &1f\n”,x,s);
return 0;
}