Hello CProgrammers,

Future programmer need help with a code. I am to design a program that reads a low value, a high value and 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 of low and high at increments of increment.

If the value of low, high and increment are 1, 1.55 and 0.1 the table should look like:

Value Square Root Cubic Root
1.0 1.0 1.0
1.1 1.04881 1.03228

and so on....
Here is the code that I have done and I am having problems working pass this point, any help will be greatly appreciated!
CODE : (oh, how do you all put the code in small print so it could be easily understood..)


# 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=0.1;
do}
low value=low value+increment;
printf("%1f", low_value);
printf(" %f", sqrt(low_value));