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:44