- 博客(1)
- 问答 (1)
- 收藏
- 关注
原创 定义一个函数,并用递归方式n的阶乘 C语言
#include<stdio.h>int main(){ int f(int n);/*函数类型,实参类型*/ int n,temp;/*定义实参*/ printf("Input the nunumber wich you want."); scanf("%d",&n); temp=f(n); printf("n!= %d",temp); }int f(int n)/*定义函数类型,形参类型,返回值类型*/{ ...
2021-11-22 21:15:06 869
空空如也
给数组排倒序,如:第一位放在最后一位
2021-11-04
TA创建的收藏夹 TA关注的收藏夹
TA关注的人