#include <stdio.h>
#include <math.h>
int main()
{
long double c, n, fact = 1;
printf("Enter a number to calculate it's factorial\n");
scanf("%d", &n);
for (c = 1; c <= n; c++)
fact = fact * c;
long double result=csqrtl(fact);
printf("Squareroot of %d = %d\n", n, result);
return 0;
}
----------------------------------------------------------------------------------------------------
for more details on square root refer to..
http://www.codecogs.com/reference/computing/c/math.h/sqrt.php[
^]
I think this solves your problem.
for data type see my solution below