当前位置:网站首页>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;
}边栏推荐
- puzzle(016.3)千丝万缕
- Selective sorting
- Leetcode (4) - - trouver la médiane de deux tableaux ordonnés positifs
- Puzzle (016.3) is inextricably linked
- tonybot 人形机器人 红外遥控玩法 0630
- String sort
- Tonybot humanoid robot checks the port and corresponds to port 0701
- NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
- Recent learning summary
- 556. The next larger element III
猜你喜欢

Jiuyi cloud black free encryption free version source code

Why is this error reported when modifying records in the database

puzzle(016.4)多米诺效应

Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue

常见问题之PHP——ldap_add(): Add: Undefined attribute type in

基因家族特征分析 - 染色体定位分析

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

Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million

Use of constraintlayout

Puzzle (016.4) domino effect
随机推荐
Detailed explanation of four modes of distributed transaction (Seata)
Luogu p5536 [xr-3] core city solution
使用并行可微模拟加速策略学习
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
Raft agreement
Solr series of full-text search engines - basic principles of full-text search
tonybot 人形机器人 红外遥控玩法 0630
Thread. Sleep and timeunit SECONDS. The difference between sleep
Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not
Find specified characters
Leetcode (4) -- find the median of two positively ordered arrays
Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
动态获取权限
7-18 finding the single root of polynomial by dichotomy
7-22 tortoise and rabbit race (result oriented)
7-24 reduction of the simplest fraction (rolling Division)
ZABBIX saves the page blank after adding calculated items
Some concepts about agile
[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?
Adc128s022 ADC Verilog design and Implementation