printf("\nEnter the number of terms:\n");
scanf("%i",&j);
printf("\nPleas e enter expression info as follow:\n");
{
double value;
double power;
double times;
int pos;
int isX;
int KnowX;
printf("-------- expression info:--------\n");
printf("What is the single value? =");
scanf("%f",&val ue);
printf("How many numbers of xtimes? =");
scanf("%f",&pow er);
printf("What is the power value? =");
scanf("%f",&tim es);
printf("What is the sign ? =");
scanf("%i\n",&p os);
}
with the above code how do i add the loop?Thank guys for the help
scanf("%i",&j);
printf("\nPleas e enter expression info as follow:\n");
{
double value;
double power;
double times;
int pos;
int isX;
int KnowX;
printf("-------- expression info:--------\n");
printf("What is the single value? =");
scanf("%f",&val ue);
printf("How many numbers of xtimes? =");
scanf("%f",&pow er);
printf("What is the power value? =");
scanf("%f",&tim es);
printf("What is the sign ? =");
scanf("%i\n",&p os);
}
with the above code how do i add the loop?Thank guys for the help
Comment