[Error] D:\My Documents\C-Free\Temp\未命名1.cpp:10: error: `sin' was not declared i
#include<stdio.h>main()
{
int a=1;
int d=4;
int x=23;
printf("%d\n",(sin(x)*sin(x))*(a+b)/(a-b));
}
不知道哪里错了求教,谢谢!
#include <stdio.h> #include <math.h> int main(void) { int a = 1, b = 4, x = 23; printf("%f\n", (sin(x) * sin(x)) * (a + b) / (a - b)); return 0; }