I need to determine x from the expression root(y).
"Y" has a range to its separated value with maximum 10^1000. I solved it in the normal way and I saw the right result. But when Y is very large, the program outputs the wrong answer.
#include<stdio.h>
#include<math.h>
int main()
{
long long int x,y;
scanf("%lld",&y);
x=sqrt(y);
printf("%lld",x);
return 0;
}