当前位置:网站首页>Zzuli:1048 factorial table
Zzuli:1048 factorial table
2022-07-03 14:34:00 【Snake_____】
Title Description
Enter a positive integer n(n<=20), Output 1 To n Factorial table between .
Input
Enter only one positive integer n.
Output
Output 1 To n Factorial table between , See the output sample for the format . Two data per row , The first data accounts for 4 Column , The second data accounts for 20 Column , Align left .
The sample input Copy
5
Sample output Copy
1 1 2 2 3 6 4 24 5 120
Tips
Be careful int The representation range of the type
#include <stdio.h>
int main()
{
int n,i;
double num=1;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
num=num*i;
printf("%-4d%-20.0lf\n",i,num);
}
return 0;
}边栏推荐
- ConstraintLayout 的使用
- Solr series of full-text search engines - basic principles of full-text search
- dllexport和dllimport
- pyQt界面制作(登录+跳转页面)
- 必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿
- 表单文本框的使用(一) 选择文本
- 7-28 monkeys choose King (Joseph problem)
- Too many files with unapproved license
- Thinking about the arrangement problem in the backtracking problem (leetcode questions 46 and 47)
- The mail function of LNMP environment cannot send mail
猜你喜欢

556. The next larger element III

泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东

Showmebug entered Tencent conference, opening the era of professional technical interview
![洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解](/img/89/da1a3a38e02671628f385de0f30369.png)
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解

ShowMeBug入驻腾讯会议,开启专业级技术面试时代

中感微冲刺科创板:年营收2.4亿净亏1782万 拟募资6亿

分布式事务(Seata) 四大模式详解

Why is this error reported when modifying records in the database

puzzle(016.4)多米诺效应

Timecho of Tianmou technology completed an angel round financing of nearly 100 million yuan to create a native timing database of the industrial Internet of things
随机推荐
SSH access control, blocking the IP when logging in repeatedly to prevent brute force cracking
Sendmail can't send mail and it's too slow to send. Solve it
7-14 sum integer segments (C language)
Ultra simple mobile map development
Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion
Use of constraintlayout
Thread.sleep和TimeUnit.SECONDS.sleep的区别
中感微冲刺科创板:年营收2.4亿净亏1782万 拟募资6亿
Jiuyi cloud black free encryption free version source code
[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?
Time conversion ()
Understand the application scenario and implementation mechanism of differential segment
Raft agreement
Tonybot Humanoïde Robot Infrared Remote play 0630
x86汇编语言-从实模式到保护模式 笔记
洛谷P5194 [USACO05DEC]Scales S 题解
7-24 reduction of the simplest fraction (rolling Division)
How to query the baby category of tmall on Taobao
retrofit
Find books ()