#include int main() { int n; extern int factorial(int n); scanf("%d", &n); printf("%d\n", factorial(n)); return 0; } int factorial(int n) { if (n < 2) return 1; else return n * factorial(n-1); }