当前位置:网站首页>Chapter 1: find the factorial n of n!
Chapter 1: find the factorial n of n!
2022-07-03 19:21:00 【Shares_ four】
int main()
{
int k, n;
long t;
printf(" Please enter 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;
}
result :
边栏推荐
- FBI warning: some people use AI to disguise themselves as others for remote interview
- 05 -- QT OpenGL draw cube uniform
- Flutter网络和数据存储框架搭建 -b1
- Chapter 2: 4-digit Kaplan number, search even digit Kaplan number, search n-digit 2-segment sum square number, m-digit ingenious square number without 0, specify the number to form a 7-digit square nu
- Free hand account sharing in September - [cream Nebula]
- High concurrency Architecture - separate databases and tables
- Why should we do feature normalization / standardization?
- The necessity of lean production and management in sheet metal industry
- Day10 ---- 强制登录, token刷新与jwt禁用
- Buuctf's different flags and simplerev
猜你喜欢
How to build an efficient information warehouse
第二十章:y= sin(x)/x,漫步坐标系计算,y= sin(x)/x 带廓幅图形,奥运五环,小球滚动与弹跳,流水显示,矩形优化裁剪,r个皇后全控nxn棋盘
我們做了一個智能零售結算平臺
Driveseg: dynamic driving scene segmentation data set
[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]
东数西算拉动千亿产业,敢啃“硬骨头”的存储厂商才更有机会
Chapitre 1: le roi de shehan a mal calculé
Leetcode 1189. Maximum number of balloons (special character count)
第一章:求n的阶乘n!
Record: install MySQL on ubuntu18.04
随机推荐
[mathematical modeling] ship three degree of freedom MMG model based on MATLAB [including Matlab source code 1925]
Day10 ---- 强制登录, token刷新与jwt禁用
我们做了一个智能零售结算平台
达梦数据库的物理备份和还原简解
Record: pymysql is used in pycharm to connect to the database
Next spread
Day11 ---- 我的页面, 用户信息获取修改与频道接口
Simulation scheduling problem of SystemVerilog (1)
【水质预测】基于matlab模糊神经网络水质预测【含Matlab源码 1923期】
Streaming media server (16) -- figure out the difference between live broadcast and on-demand
第一章:求奇因数代数和,求同吗小数和s(d, n),简化同码小数和s(d, n),拓广同码小数和s(d, n)
Valentine's Day - make an exclusive digital collection for your lover
Ego planner code parsing Bspline_ Optimizer section (2)
2020 intermediate financial management (escort class)
I didn't cancel
第二章:4位卡普雷卡数,搜索偶数位卡普雷卡数,搜索n位2段和平方数,m位不含0的巧妙平方数,指定数字组成没有重复数字的7位平方数,求指定区间内的勾股数组,求指定区间内的倒立勾股数组
Redis master-slave synchronization, clustering, persistence
Zhang Fei hardware 90 day learning notes - personal records on day 2, please see my personal profile / homepage for the complete
03 -- QT OpenGL EBO draw triangle
Detailed explanation of shuttle unity interworking principle