A factorial Problem code

It’s showing wrong answers in two test cases. please help

your approach and code is correct
only change you have to do is

instead of int use long long int
all testcase will passed

Modified Code

if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like :heart:: and don’t forgot to mark doubt as resolved :grinning: