一个简单的编程检查时没有错误,但无法运行
#include <stdio.h>#include<math.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main()
{
int x;
float c,s,a,b;
scanf("%d",x);
c=2*x*M_PI;
s=M_PI*x*x;
a=tan(x);
b=1/tan(x);
printf("%f,%f,%f,%f\n",c,s,a,b);
return 0;
}