当前位置:网站首页>求n的乘阶
求n的乘阶
2022-06-26 00:13:00 【原来是这样^^】
#include<stdio.h>
int main()
{
int n = 0;
scanf("%d", &n);
int a = 1; //把a设为1不设为0的意思是零乘任何数都为0,0x1x2x3x4......
int i = 1; //乘阶的意思是1x2x3x4x5......xn,一直乘到n
for (i = 1; i <= n; i++) //把i设为1不设为0的意思是零乘任何数都为0,0x1x2x3x4......
{
a = a * i; //实现从1乘到n
}
printf("%d", a);
return 0;
}边栏推荐
- leetcode 300. Longest increasing subsequence (medium)
- web测试
- Summary of in-depth learning optimization techniques
- Explication du script correspondant à l'assertion Postman
- 24. histogram calculation
- 输入3个整数,从大到小输出出来
- Oracle数据库完全卸载步骤(暂无截图)
- Common basic Oracle commands
- 20. Hough line transformation
- 阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人
猜你喜欢

Log4j2 vulnerability

Postman断言对应脚本的解释

Explication du script correspondant à l'assertion Postman

The answer skills and examples of practical cases of the second construction company are full of essence

从在浏览器的输入框输入一个网址,到看到网页的内容,这个过程中发生了什么?

Can bus transceiver principle

CYCA少儿形体礼仪 乐清市培训成果考核圆满落幕

二造实务案例答题技巧和举例汇总,满满都是精髓

readv & writev

热血男孩滕文泽 受邀担任第六季完美童模全球总决赛形象大使
随机推荐
分布式系统(二)分布式事务的理解
缓冲
tos cos dscp 区别和作用
Installing MySQL databases in FreeBSD
2021-1-15 摸魚做的筆記Ctrl+c /v來的
秀场精灵陈梓桐 受邀担任第六季完美童模全球总决赛首席体验官
wifi 的理论速度计算方法
Eight principles of element positioning
Brief introduction to the usage of iloc in dataframe
PTA class a simulated third bomb: 1140-1143
biggan:large scale gan training for high fidelity natural image synthesis
Install tensorflow GPU miscellaneous
Basic concepts of machine learning
Talking about interface test (2)
Perfdog
Abnova丨CSV 单克隆抗体解决方案
2022 documenter general basic (documenter) exam simulation 100 questions and online simulation exam
Focal loss
Summary of informer's paper
Oracle數據庫完全卸載步驟(暫無截圖)