i am sorry somehow when i pressed the link i had given it went back to default code.
i now tried saving my code in that link.
It still isn’t working if i give long long to n and k.
Specifically it works if i give long long to only temp and counter
and not if i give it to n and k
thanks for your patience!!
this is the code
long long int n,k;
long long int temp,counter=0;