当前位置:网站首页>第一章:求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;
}
结果:
边栏推荐
- Foundation of ActiveMQ
- [academic related] how to find the innovation of top papers? Chinese universities won the CVPR Best Student Thesis Award for the first time
- In addition to the prickles that pierce your skin, there are poems and distant places that originally haunt you in plain life
- Counting from the East and counting from the West will stimulate 100 billion industries. Only storage manufacturers who dare to bite the "hard bone" will have more opportunities
- 我眼中真正优秀的CTO长啥样
- Free hand account sharing in September - [cream Nebula]
- High concurrency Architecture - distributed search engine (ES)
- Ego planner code parsing Bspline_ Optimizer section (1)
- Find the median of two positive arrays
- Driveseg: dynamic driving scene segmentation data set
猜你喜欢
[free sharing] kotalog diary2022 plan electronic manual ledger
FBI warning: some people use AI to disguise themselves as others for remote interview
Foundation of ActiveMQ
Record: MySQL changes the time zone
Recommend a GIF processing artifact less than 300K - gifsicle (free download)
[proteus simulation] a simple encrypted electronic password lock designed with 24C04 and 1602LCD
OSPF - detailed explanation of stub area and full stub area
【疾病识别】基于matlab GUI机器视觉肺癌检测系统【含Matlab源码 1922期】
235. Ancêtre public le plus proche de l'arbre de recherche binaire [modèle LCA + même chemin de recherche]
【光学】基于matlab介电常数计算【含Matlab源码 1926期】
随机推荐
In addition to the prickles that pierce your skin, there are poems and distant places that originally haunt you in plain life
Change is the eternal theme
cipher
Analyse du Code du planificateur ego bspline Section Optimizer (1)
The way to treat feelings
Compared with 4G, what are the advantages of 5g to meet the technical requirements of industry 4.0
I study database at station B (4): DQL
變化是永恒的主題
Record: install MySQL on ubuntu18.04
math_ Taylor formula
QT -- qfileinfo file information reading
Verilog HDL continuous assignment statement, process assignment statement, process continuous assignment statement
Luogu-p1107 [bjwc2008] Lei Tao's kitten
论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
【疾病识别】基于matlab GUI机器视觉肺癌检测系统【含Matlab源码 1922期】
Octopus online ecological chain tour Atocha protocol received near grant worth $50000
[mathematical modeling] ship three degree of freedom MMG model based on MATLAB [including Matlab source code 1925]
[optics] vortex generation based on MATLAB [including Matlab source code 1927]
Go home early today
Sentinel source code analysis part II - sentinel dashboard console startup and configuration