int b,d; scanf("%d",&b); while(b>=1 && b<=9) { d=b; } while(d>=1) { b=b*d; d=d-1; } printf("%d",b); system("pause"); return 0;