求X的Y次方 错误
************************************************************求X的Y次方******************************************************************************************#include
int main(void)
{
float x,n,result,a,sum=1;
printf("TO:X**N\n");
printf("PLEASE ENTER X,N.\n");
scanf("%f,%f",&x,&n);
printf("x=%f,n=%f\n",x,n);
if(n==0)
{
printf("result is 1\n");
}
else
{
for(a=0;a