Hello, this program is to read a low value, a high value an increment value ensure that the low value is less than or equal to the high value and computes and prints a table of square roots, and cubic roots for all values from low to high at increments of increment. Thanks for the help!
# include <stdio.h>
# include <math.h>
double sqrt(double x);
double pow (double x, double y);
int main(void) {
/*variable declarations*/
double low_value,high_value,increment;
printf("ENTER LOW VALUE: ");
scanf("%1f", &low_value);
printf("ENTER HIGH VALUE: ");
scanf("%1f", &high_value);
while (high_value <= low_value)
{
printf("*****RE ENTER VALUES*****\n");
printf("ENTER LOW VALUE:" );
scanf("%1f",&low_value);
printf("ENTER HIGH VALUE:" );
scanf("%1f",&high_value);
}
{
printf("\n");
printf("VALUE SQUARE ROOT CUBIC ROOT\n");
printf("----- ----------- ----------\n");
printf("%f", low_value);
printf(" %f", sqrt(low_value));
printf(" %f\n", pow(low_value,.33333));
increment=1,
do
}
low_value=low_value+increment;
printf("%1f", low_value);
printf(" %f", sqrt(low_value));
printf(" %f\n", pow(low_value, .33333));
}
return 0;