当前位置:网站首页>Use the for loop to calculate n! Value of
Use the for loop to calculate n! Value of
2022-06-21 22:17:00 【Programming expert】
source :《 Information Science Olympiad all in one 》p56
【 Title Description 】
utilize for Cycle calculation n! Value .
【 analysis 】
n!=1×2×3×···×n
The code is as follows :
notes : Code for reference only , There is not only one solution .
#include<cstdio>
int main(){
long long s=1;
int n;
scanf("%d",&n);
for(int i=1;i<=n;++i) s*=i;
printf("%lld",s);
return 0;
}
边栏推荐
- 弗吉尼亚大学:Ingy ElSayed-Aly | 多智能体强化学习中的基于逻辑的奖励形成
- 精彩回顾丨一图了解华为云专场干货
- A callback was made to a garbage collected delegate of type "xxx:: invoke". This can cause application crashes, corruption, and data loss. When passing delegates to unmanaged code, the managed applica
- Zhengweimin, academician of the Chinese Academy of Engineering: I am optimistic that China will have a place in the next it Era
- pi4j gpio针脚上拉电阻,下拉电阻概念
- 001 new construction project based on opencvsharp
- 处理订单业务多面手,订货管理系统实现企业订货库存统一管理
- 北京 加速生态建设 迈动互联与摩尔线程完成产品兼容互认证
- Characteristics and experimental suggestions of abbkine cell cycle Staining Kit
- 提升方法(下)提升树
猜你喜欢

数商云纸业集团供应商管理系统:推进企业信息化建设,全面提升供应商管理效率

Paml| Shengxin software for calculating dn/ds value
![I2C [2] - why does IIC need to use open drain output and pull-up resistor bug](/img/8d/e72c640b697a8fe9768f6bdbf137ca.png)
I2C [2] - why does IIC need to use open drain output and pull-up resistor bug

五分钟带你了解云原生

C# AboutBox怎么显示自己定义的界面

B2B商城网站助力企业加快分销速度,构建高效智能的B2B网上分销平台

Instadeep ltd:arthur flajolet | group based rapid reinforcement learning on a single machine

Hiclotter|hic data visualization tool
![[deeply understand tcapulusdb technology] tcapulusdb import data](/img/a8/04c4c6703a6137d17666f211d7988d.png)
[deeply understand tcapulusdb technology] tcapulusdb import data

Characteristics and experimental suggestions of abbkine cell cycle Staining Kit
随机推荐
刷题笔记(十七)--二叉搜索树:关于属性问题
文件I/O
迅为iTOP-3568开发板安装 RKNN Toolkit Lite2
Worthington胶原蛋白酶原料
2022 Foshan Tanzhou ceramics exhibition held a press conference to launch ten key points of the exhibition
Instadeep ltd:arthur flajolet | group based rapid reinforcement learning on a single machine
Is the security of the securities account given by digging money safe? Can I open an account?
I2C [2] - why does IIC need to use open drain output and pull-up resistor bug
【深入理解TcaplusDB技术】单据受理之表管理
博图仿真HMI与真实1200PLC通讯失败
What are the conditions for MySQL to create tables
Dategridview first column sort
As we media, why can some people earn more than 10000 yuan a month, but you can only earn a few yuan a month?
利用do while循环,分别计算1-100中奇数的和、偶数的和【方法二】
提升方法(下)提升树
B2B商城网站助力企业加快分销速度,构建高效智能的B2B网上分销平台
大不列颠泰迪熊加入PUBG 手游
【深入理解TcaplusDB技术】TcaplusDB构造数据
Background and specificity of Worthington elastase
B2B mall website helps enterprises speed up distribution and build an efficient and intelligent B2B online distribution platform