当前位置:网站首页>Find the multiplication order of n
Find the multiplication order of n
2022-06-26 01:49:00 【So it is^^】
#include<stdio.h>
int main()
{
int n = 0;
scanf("%d", &n);
int a = 1; // hold a Set to 1 Not set to 0 Zero times any number is 0,0x1x2x3x4......
int i = 1; // Multiplication means 1x2x3x4x5......xn, Ride all the way to n
for (i = 1; i <= n; i++) // hold i Set to 1 Not set to 0 Zero times any number is 0,0x1x2x3x4......
{
a = a * i; // from 1 Ride to n
}
printf("%d", a);
return 0;
}边栏推荐
猜你喜欢

Postman接口测试之断言

Sunshine boy chenhaotian was invited to be the spokesperson for the global finals of the sixth season perfect children's model

Talking about interface test (2)

28. contour discovery

清甜女孩李斯霞 受邀担任第六季完美童模全球总决赛小主持人

分布式系统(二)分布式事务的理解

One stop solution EMQ for hundreds of millions of communication of Internet of things

What happens from entering a web address in the browser's input box to seeing the contents of the web page?

Postman斷言對應脚本的解釋

秀场精灵陈梓桐 受邀担任第六季完美童模全球总决赛首席体验官
随机推荐
User unlock status query
Worthington胶原蛋白酶的多类型研究
GUN make (2) 总述
tos cos dscp 区别和作用
memory leak check tools 详解
21. Hoff circle transformation
recv & send
缓冲
CyCa children's physical etiquette Yueqing City training results assessment successfully concluded
28. contour discovery
Talking about interface test (I)
recvmsg & sendmsg
Sunshine boy chenhaotian was invited to be the spokesperson for the global finals of the sixth season perfect children's model
App test (I)
Talking about interface test (2)
微信朋友圈测试点
The answer skills and examples of practical cases of the second construction company are full of essence
GUN make (7) 执行make
丨EGFR FISH 探针解决方案
What happens from entering a web address in the browser's input box to seeing the contents of the web page?