Hi guys can help me to correct my mistake? For my program, i asked the user for the number of terms they want to enter, it will then loop to the required times
Code:
for(j=0;j<10;j++)
{
printf("\nEnter the number of terms:\n");
scanf("%i",&j);
printf("\nPlease enter expression info as follow:\n");
{
double value;
double power;
double times;
int pos;
int isX;
int KnowX;
int i;
printf("-------- expression info:--------\n");
printf("What is the single value? =");
scanf("%f",&value);
printf("How many numbers of xtimes? =");
scanf("%f",&power);
printf("What is the power value? =");
scanf("%f",×);
printf("What is the sign ? =");
scanf("%i\n",&pos);
}
return 0;
}
Comment