当前位置:网站首页>[C language] Yang Hui triangle, customize the number of lines of the triangle
[C language] Yang Hui triangle, customize the number of lines of the triangle
2022-07-02 12:06:00 【Study silently every day】
Preface
OK, Today, let's talk about a simple code : Yang hui triangle .
The main new element is that we can customize the number of rows of Yang Hui triangle , such , It makes the program a little interesting , It becomes a medium-level code .
Three steps to learn code :
1. Read the code ;
2. Modify the code ;
3. Write your own code
Code finished steps :
1. Determine the function ;
2. Draw flow chart ;
3. Write code ;
4. debugging ;
5. test ;
6. finished product
OK, Write code , A teacher said , The code is not written , It is debugged , Deeply think the same , Share with you , Slowly realize in the process of writing code by yourself .
One 、 Code
I put the analysis of the code in the comments , You can better analyze the code by yourself , Next is the code :
#include<stdio.h> // The header file
int main()
边栏推荐
- SCM power supply
- 动态内存(进阶四)
- Leetcode14 最长公共前缀
- Jenkins voucher management
- Small guide for rapid formation of manipulator (VII): description method of position and posture of manipulator
- 全链路压测
- BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
- Natural language processing series (II) -- building character level language model using RNN
- Leetcode739 daily temperature
- (C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
猜你喜欢
Filtre de profondeur de la série svo2
Three transparent LED displays that were "crowded" in 2022
深入理解P-R曲线、ROC与AUC
GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
FLESH-DECT(MedIA 2021)——一个material decomposition的观点
Depth filter of SvO2 series
Test shift left and right
PyTorch nn.RNN 参数全解析
BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
Differences between nodes and sharding in ES cluster
随机推荐
pgsql 字符串转数组关联其他表,匹配 拼接后原顺序展示
SVO2系列之深度濾波DepthFilter
时间格式化显示
Those logs in MySQL
深入理解PyTorch中的nn.Embedding
Larvel modify table fields
mysql表的增删改查(进阶)
Log4j2
YYGH-BUG-05
Leetcode922 sort array by parity II
Lekao: contents of the provisions on the responsibility of units for fire safety in the fire protection law
Log4j2
Applet link generation
From scratch, develop a web office suite (3): mouse events
Industry analysis
【2022 ACTF-wp】
Full link voltage measurement
Leetcode122 买卖股票的最佳时机 II
Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
SCM power supply