为什么检测没错,运行不了。求各路大神指点。
#include<math.h>#include<stdio.h>
void main()
{
double x,s;
printf("input number:\n");
scanf("%lf",&x);
s=sin(x);
printf("sine of %lf is %lf\n", x,s);
}
#include<math.h> #define PI 3.14159 #include<stdio.h> int main() { double a,b; printf("input number\n"); scanf("%lf",&a); b=sin(a*PI/180); printf("sin(%1f)= %lf",a, b); return 0; }
#include #define PI 3.14159 #include int main() { double a,b; printf("input number\n"); scanf("%lf",&a); b=sin(a*PI/180); printf("sin(%1f)= %lf",a, b); return 0; }