#include /* this function requires that x>=1 */ int f(int x) { if (x == 1) return 1; else return x * f(x-1); } int main() { printf("%d\n", f(10)); return 0; }