当前位置:网站首页>[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() 边栏推荐
- GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
- Orb-slam2 data sharing and transmission between different threads
- Yygh-10-wechat payment
- Codeforces 771 div2 B (no one FST, refers to himself)
- MSI announced that its motherboard products will cancel all paper accessories
- mysql表的增删改查(进阶)
- SSH automatically disconnects (pretends to be dead) after a period of no operation
- 求16以内正整数的阶乘,也就是n的阶层(0=<n<=16)。输入1111退出。
- 高德地图测试用例
- 输入一个三位的数字,输出它的个位数,十位数、百位数。
猜你喜欢

Jenkins用户权限管理

The position of the first underline selected by the vant tabs component is abnormal

数据分析 - matplotlib示例代码

自然语言处理系列(一)——RNN基础

How does Premiere (PR) import the preset mogrt template?

Pytorch builds LSTM to realize clothing classification (fashionmnist)

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer

基于Arduino和ESP8266的连接手机热点实验(成功)

GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R

【C语言】十进制数转换成二进制数
随机推荐
【2022 ACTF-wp】
多文件程序X32dbg动态调试
From scratch, develop a web office suite (3): mouse events
输入一个三位的数字,输出它的个位数,十位数、百位数。
pgsql 字符串转数组关联其他表,匹配 拼接后原顺序展示
How to Create a Beautiful Plots in R with Summary Statistics Labels
Orb-slam2 data sharing and transmission between different threads
Analyse de l'industrie
qt 仪表自定义控件
高德地图测试用例
Full link voltage measurement
Mish shake the new successor of the deep learning relu activation function
自然语言处理系列(一)——RNN基础
[untitled] how to mount a hard disk in armbian
Leetcode14 最长公共前缀
XSS labs master shooting range environment construction and 1-6 problem solving ideas
Leetcode122 the best time to buy and sell stocks II
Natural language processing series (I) -- RNN Foundation
Deep understanding of NN in pytorch Embedding
mysql表的增删改查(进阶)