#include <stdio.h> float fac(int n); int main() { int m,n; printf("输入正整数m,n\n"); scanf("%d%d",&m,&n); printf("m!+n!=%.2f\n",fac(m)+fac(n)); return 0; } float fac(int n) { int i=1; float sum=1; for(;i<=n;i++) sum*=i; return sum; }