当前位置:网站首页>第一章:求n的阶乘n!
第一章:求n的阶乘n!
2022-07-03 19:16:00 【股_四】
int main()
{
int k, n;
long t;
printf(" 请输入n (n < 3)", &n);
scanf("%d", &n);
t = 1;
for (k = 1; k <= n; k++)
t = t * k;
printf(" %d != %ld\n", n, t);
return 0;
}
结果:
边栏推荐
- Change is the eternal theme
- High concurrency Architecture - separate databases and tables
- 我们做了一个智能零售结算平台
- 【光学】基于matlab介电常数计算【含Matlab源码 1926期】
- Does SQL always report foreign key errors when creating tables?
- flask 生成swagger文档
- Buuctf's different flags and simplerev
- Merge K ascending linked lists
- Luogu-p1107 [bjwc2008] Lei Tao's kitten
- [optics] vortex generation based on MATLAB [including Matlab source code 1927]
猜你喜欢
Why should we do feature normalization / standardization?
SSM integration - joint debugging of front and rear protocols (list function, add function, add function status processing, modify function, delete function)
Add control at the top of compose lazycolumn
为什么要做特征的归一化/标准化?
FBI警告:有人利用AI换脸冒充他人身份进行远程面试
【水质预测】基于matlab模糊神经网络水质预测【含Matlab源码 1923期】
SSM整合-前后台协议联调(列表功能、添加功能、添加功能状态处理、修改功能、删除功能)
Sentinel source code analysis part II - sentinel dashboard console startup and configuration
【光学】基于matlab涡旋光产生【含Matlab源码 1927期】
The necessity of lean production and management in sheet metal industry
随机推荐
High concurrency Architecture - read write separation
[new year job hopping season] test the technical summary of interviewers' favorite questions (with video tutorials and interview questions)
Nous avons fait une plateforme intelligente de règlement de détail
Ego planner code parsing Bspline_ Optimizer section (3)
EGO Planner代碼解析bspline_optimizer部分(1)
SSM整合-前后台协议联调(列表功能、添加功能、添加功能状态处理、修改功能、删除功能)
我们做了一个智能零售结算平台
High concurrency architecture cache
Free year-end report summary template Welfare Collection
[academic related] how to find the innovation of top papers? Chinese universities won the CVPR Best Student Thesis Award for the first time
Max of PHP FPM_ Some misunderstandings of children
P3402 persistent and searchable
PyTorch中在反向传播前为什么要手动将梯度清零?
EGO Planner代码解析bspline_optimizer部分(3)
[leetcode] [SQL] notes
【学术相关】顶级论文创新点怎么找?中国高校首次获CVPR最佳学生论文奖有感...
Which do MySQL and Oracle learn?
TFs and SVN [closed] - TFs vs SVN [closed]
Verilog HDL continuous assignment statement, process assignment statement, process continuous assignment statement
[proteus simulation] a simple encrypted electronic password lock designed with 24C04 and 1602LCD