当前位置:网站首页>C language 99 multiplication table
C language 99 multiplication table
2022-06-26 20:18:00 【the best b】
#include<stdio.h>>
int main()
{
int a,b,c;
for(a=1;a<=9;a++)
for(b=1;b<=9;b++)
{
c=a*b;
printf("%d*%d=%d",a,b,c);
if(a==b)printf("\n");
}
}
This is the first edition , I tried the first version successfully several times .
It feels a little strange , Then I changed it to read it , But not yet .
#include<stdio.h>>
int main()
{
int a,b,c;
for(a=1;a<=9;a++)
for(b=1;b<=9;b++)
{
c=a*b;
printf("%d*%d=%d\t",a,b,c);
if(a==b+1)printf("\n");
}
}
I'll improve , Today's main attack c 了 .
#include<stdio.h>>
int main()
{
int a,b,c;
for(a=1;a<=9;a++)
for(b=1;b<=9;b++)
{
c=a*b;
printf("%d*%d=%d\t",a,b,c);
if(b==9)printf("\n");
}
}
This edition is almost done .
边栏推荐
- 清华大学就光刻机发声,ASML立马加紧向中国出口光刻机
- Swagger: how to generate beautiful static document description pages
- Feitian +cipu body brings more imagination to the metauniverse
- 30. concatenate substrings of all words
- Analysis on development technology of NFT meta universe chain game system
- 关于Qt数据库开发的一些冷知识
- Detailed explanation of retrospective thinking
- 515. 在每个树行中找最大值
- Uni app uses canvas to draw QR code
- Minimum spanning tree, shortest path, topology sorting, critical path
猜你喜欢
随机推荐
When are global variables initialized before entering the main function?
Boot的单元测试
Daily basic use of alicloud personal image warehouse
Separate save file for debug symbols after strip
The goal you specified requires a project to execute but there is no POM
Some cold knowledge about QT database development
Sentinelresource annotation details
Why don't I recommend going to sap training institution for training?
Is it safe to open a securities account? Is there any danger
JS mobile terminal touch screen event
IDEA 报错:Process terminated【已解决】
8VC Venture Cup 2017 - Final Round C. Nikita and stack
Kubernetes 资源拓扑感知调度优化
Unity - URP get camera stack
Detailed explanation of shutter textfield
find_ path、find_ Library memo
Installation and use of filebeat
【最详细】最新最全Redis面试大全(70道)
关于不等式取值转义的思路
The successfully resolved idea cannot use the log normally after referencing Lombok's @slf4j








