Please can anyone view my solution and tell me why is it throwing NZEC error on online IDE. Though i tried multiple times on my offline IDE, its Running successfully.
double d=(double)x/y cannot store such large no of 1000 digit after decimal .
That many digits can’t be stored even in unsigned long long. Try to use old school division and and get the sum while updating the dividend after each division. If it becomes 0 then break;