#include <stdio.h> int main() { int i = 1, n; printf ("please put in n:"); scanf ("%d",&n); for (; n > 1; n--) { i *= n; } printf ("i=%d",i); }