Regarding the fnm1

why can’t we use
int fnm1=fnm1*fact(n-1);

Hey @mishikasrvastava
You must initialize the variable

fn is also not initialized?

@mishikasrvastava
Nope