当前位置:网站首页>求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;
}边栏推荐
- 2021 - 1 - 15 notes de pêche Ctrl + C / V
- JSON introduction
- Energetic girl wangyujie was invited to be the spokesperson for the global finals of the sixth season perfect children's model
- leetcode 300. Longest increasing subsequence (medium)
- 28. contour discovery
- 2021-1-15 摸鱼做的笔记Ctrl+c /v来的
- Oracle database complete uninstallation steps (no screenshot)
- Install tensorflow GPU miscellaneous
- Simple making of master seal
- Pixel6 unlock bootloader
猜你喜欢

阳光男孩陈颢天 受邀担任第六季完美童模全球总决赛代言人

Postman断言对应脚本的解释

Energetic girl wangyujie was invited to be the spokesperson for the global finals of the sixth season perfect children's model

王老吉药业“关爱烈日下最可爱的人”公益活动在杭启动

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

24. histogram calculation

Abnova丨CSV 单克隆抗体解决方案

The 19th - 22nd week of scientific research training - about tnet and memnet

Explication du script correspondant à l'assertion Postman

20. Hough line transformation
随机推荐
UN make (6) makefile的条件执行
memory leak check tools 详解
GNN (graph neural network) introduction vernacular
CYCA少儿形体礼仪 乐清市培训成果考核圆满落幕
biggan:large scale gan training for high fidelity natural image synthesis
GUN make (1) 简介
recv & send
Worthington胶原蛋白酶的多类型研究
微信朋友圈测试点
regular expression
Dataframe to list
Rollback Protection
PTA class a simulated fifth bomb: 1148-1151
Basic concepts of machine learning
Procédure de désinstallation complète de la base de données Oracle (pas de capture d'écran)
PTA class a simulated 11th bomb: 1124-1131
Maze walking
cyclegan:unpaired image-to-image translation using cycle-consistent adversarial network
Forgotten Jieba participle
23. histogram equalization