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