当前位置:网站首页>2020-12-20 九九乘法表
2020-12-20 九九乘法表
2022-07-26 22:38:00 【沉梦昂志浮生若梦】
九九乘法表
谭浩强c语言红皮书
观察输出结果来写代码
外层的for可以控制输出几行.
内层的for可以控制每行的输出.
#include <stdio.h>
int main()
{
int i, j;
for (i = 1; i <= 9; i++)
{
for (j = 1; j <= i; j++)
printf("%d*%d=%d\t", i, j, i * j);
printf("\n");
}
return;
}

当我们把内内层循环的循环条件改变 得到下列结果 我一直以为这才是九九乘法表

边栏推荐
猜你喜欢

1、 Kubernetes basic concept + environment installation (build cross server public network environment)

Shufflenet series (2): explanation of shufflenet V2 theory

Configure deeplobcut 1 with your head covered

Go exceed API source code reading (IV) -- save (), SaveAs (name string)

Leetcode - hash table

滑动窗口问题总结

Database: MySQL foundation +crud basic operation

Relationship between limit, continuity, partial derivative and total differential of multivariate function (learning notes)

13_ Ensemble learning and random forests
![[LeetCode] 无重复最长字符串](/img/97/bf8c9b019136ab372ce2c43cddbb2c.jpg)
[LeetCode] 无重复最长字符串
随机推荐
Arcgis和Cass实现断面展高程点
MySQL optimization
20220720 toss deeplobcut2
运算符重载
Midge paper reading notes
torch.相关函数
Pyautogui usage example
用New,delete和用malloc,free申请,释放堆区空间
C and pointer Chapter 18 runtime efficiency 18.3 runtime efficiency
Matlab based medical imaging technology filtering backprojection simulation, including direct backprojection, S-L filtering, R-L filtering, LeWitt filtering
Tree and binary tree (learning notes)
类与对象笔记一
94. Middle order traversal of binary tree
"Syntaxerror: future feature annotations is not defined"
When the label begins with "IMS", why does logcat not print the log?
10_ Evaluate classification
View where Anaconda created the environment
Drawing warehouse-3 (functional image)
2022_ SummerBlog_ 008
AlexNet(Pytorch实现)