当前位置:网站首页>c语言99乘法表
c语言99乘法表
2022-06-26 20:10: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");
}
}
这是第一版,试了几遍成功的第一版。
感觉有点说不上来的不对劲,然后又改了改能看了,但是还不行。
#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");
}
}
我再改进改进,今天主攻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");
}
}
这版差不多了。
边栏推荐
- Web resource preloading - production environment practice
- When are global variables initialized before entering the main function?
- Can I open an account online? Is it safe?
- MySQL stored procedure
- Basic and necessary common plug-ins of vscade
- Wechat applet uniapp left slide delete with Delete Icon
- 清华大学就光刻机发声,ASML立马加紧向中国出口光刻机
- Disruptor local thread queue_ Use transprocessor processor and workpool to compare consumption - Notes on inter thread communication 005
- 抖音实战~分享模块~复制短视频链接
- 【最详细】最新最全Redis面试大全(42道)
猜你喜欢

Bonne Recommandation: développer des outils de sécurité pour les terminaux mobiles
MySQL中存储过程的详细详解

MySQL - database creation and management

项目实战四:用户登录及token访问验证(reids+jwt)

Unity——Mathf. Similarities and differences between atan and atan2

Review of watermelon book (VII): Bayesian classifier (manual push + code demo)

On the escape of inequality value

IK word breaker

Keep alive cache component in Vue

Micro service single sign on system (SSO)
随机推荐
Minimum spanning tree, shortest path, topology sorting, critical path
On the origin of the dispute between the tradition and the future of database -- AWS series column
剑指 Offer II 091. 粉刷房子
710. random numbers in the blacklist
抖音实战~首页视频~下拉刷新
Some basic mistakes
股票开户的具体步骤是什么?网上开户安全吗?
【最详细】最新最全Redis面试大全(70道)
Keep alive cache component in Vue
两个文件 合并为第三个文件 。
郭明錤:苹果 AR / MR 头显是其有史以来设计最复杂的产品,将于 2023 年 1 月发布
Is it safe to open a securities account? Is there any danger
Tiktok practice ~ sharing module ~ generate short video QR code
慕课11、微服务的用户认证与授权
The goal you specified requires a project to execute but there is no POM
Detailed explanation of retrospective thinking
Why don't I recommend going to sap training institution for training?
Wechat applet uniapp left slide delete with Delete Icon
515. 在每个树行中找最大值
On the escape of inequality value