Changing the loop is indeed what you'd need:
for (int i = in-1; i > 0; i--) {
By the way, how did you post your code? What you pasted (or typed) does not print any factorials, and s =+ ...
should probably be s += ...
, right? Please be as concise as possible, so we have to guess/correct only the real problem, not any typos.