int fac = 1; int n = readInt; while( n-- > 0) fac = fac*n; print fac;