n哪里有错误啊,有1个编译错误
											#include"stdio.h"#include"math.h"
main()
{
int n;
float root;
printf("please input n:");
scanf("%d",&n);
if(n>=0)
{root=sqrt(n);
printf("%f",root);
}
else
{root=sqrt(ans(n));
printf("%fi",root);
}
}
 2013-07-12 08:29
	    2013-07-12 08:29
   2013-07-12 08:44
	    2013-07-12 08:44
   2013-07-12 09:24
	    2013-07-12 09:24
   2013-07-12 09:42
	    2013-07-12 09:42
   2013-07-12 09:45
	    2013-07-12 09:45
   2013-07-12 09:51
	    2013-07-12 09:51
   程序代码:
程序代码:#include<stdio.h>
#include<math.h>
 int main()
 {
     double n;
     double root;
     printf("please input n:");
     scanf("%lf",&n);
     if(n>=0)
     {root=sqrt(n);
     printf("%lf",root);
     }
     else
     {root=sqrt(fabs(n));
     printf("%lf",root);
     }
     return 0;
 } 
 2013-07-12 10:03
	    2013-07-12 10:03
   2013-07-17 11:41
	    2013-07-17 11:41
   2013-07-17 16:49
	    2013-07-17 16:49
  
 2013-07-17 17:27
	    2013-07-17 17:27