#include "stdafx.h" float f(int n) {float fn=1;if(n<0){printf("n<0 dataerror!");fn=0;}else if (n==1) fn=1;else fn=f(n-1)*n;return (fn);} void main() {int n=5; printf("%f\n",f(n));}