[quote:3he6yfgc]Strangely enough, when I use "double" as my variable type, the answers do not seem to come out correctly.[/quote]
Please note that "double" does not mean that it doubles a number. "Double" or "lf" means that the number of places to the right of the decimal has increased. eg; an int may be 12 or 123, it has so many designated places BUT a double can be 123456789 up to 14 place holders I believe. In other words use a double when your answer is like 23,000 but if its 1 or 123 use int as a declaration in you algorithm.
To square a number it would look like so...
int x;
y= x*x /*thats squared "the number times itself*/
Now pow(x,x) = means it raises a number like 10 to the power of some number
i hope this helps a bit better but if not please let me know.
