can you please check my code . it is showing wrong answer in 1 test case.
Can you please check my code
Hey @aditya12679
long double ans = 1;
Because n/n-1 will be float and hence we have to maintain double to get the right answer
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.