#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//要求从键盘接收两个数字,利用函数比较其值的大小,并输出最小值
/*int main(void) {
int min(int a, int b);
int a, b;
printf("请输入两个数:\n");
fflush(stdout);
scanf("%d%d", &a, &b);
printf("两个数中的最小值为:\n%d", min(a, b));
return EXIT_SUCCESS;
}
int min(int a, int b) {
int t;
if (a > b) {
t = b;
} else {
t = a;
}
return t;
}*/
//编写一个递归函数,当从键盘接受一个数字后,实现其阶乘的运算
/*int jiecheng(int n) {
int f;
if (n < 0) {
printf("n<0,data error!");
} else if (n == 0 || n == 1) {
f = 1;
} else {
f = jiecheng(n - 1) * n;
}
return (f);