First off, you get a compiler, and you figure out how to use it
> int main(void) }
I mean, what is this all about?
> double sqrt(double x);
> double pow (double x, double y);
These are already in math.h, you don't need to say it twice
Then you start here
Code:
#include <stdio.h>
#include <math.h>
int main(void) {
/*variable declarations*/
double low_value,high_value,increment;
printf("ENTER LOW VALUE: ");
scanf("%lf", &low_value);
printf( "You entered %f\n", low_value );
return 0;
}
Having got this working, you add your code a few lines at a time (say 5 max), and you make sure it COMPILES AND WORKS before rushing into the rest of the program.
Writing a whole mess of code, and hoping it will all work (or you'll get someone on a message board to fix it) isn't going to happen.
For what it's worth - you've got most of the bits - it just needs sorting out so it will compile.
> (oh, how do you all put the code in small print so it could be easily understood..)
You read this link
vB Code [help]
http://www.cprogramming.com/cboard/m...bbcode#buttons