hi again every1, can any1 please help me with this one? thanks.. ^.^

..i made a c program that should output the square root of a number....

...but every time it does, in this example, it showsCode:#include<stdio.h> #include<conio.h> #include<math.h> int main() { double x=100; clrscr(); printf("Square root of 100 is equals to: %lf", sqrt(x)); getchar(); return 0; }10.000000(..which is the square root of 100..)

what i want is to make the program output10(..with no decimals..) instead of 10.000000...

...another program i made that uses thepow()function:

...also has the same problem, it showsCode:#include<stdio.h> #include<conio.h> #include<math.h> int main() { double x=10; clrscr(); printf("10 raised to 2 is equals to: %lf", pow(x, 2)); getchar(); return 0; }100.000000instead of just100

....about the float and double data-type, is it correct that the%lfparameter in the printf() function is fordouble, and%fforfloat? im just confused... thanks again for your help and advise... ^.^

...and uhmmm btw, about the title for this post i made, if you found it inappropriate, please, accept my apologies...