当前位置:网站首页>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");
}
}
这版差不多了。
边栏推荐
- Tree array
- Can I open an account online? Is it safe?
- 抖音实战~搜索页面~视频详情
- Super VRT
- Disruptor本地线程队列_使用transProcessor处理器和WorkPool两种方式进行消费对比---线程间通信工作笔记005
- Sword finger offer II 091 Paint the house
- C# 练习。类列表加记录,显示记录和清空记录
- Guomingyu: Apple's AR / MR head mounted display is the most complicated product in its history and will be released in January 2023
- mysql存储过程
- 股票开户的具体步骤是什么?网上开户安全吗?
猜你喜欢

Pinda general permission system (day 1~day 2)
MySQL中存储过程的详细详解

Tiktok practice ~ search page ~ video details

Wechat applet custom pop-up components

Feign remote call

Xlua get button registration click event of ugui

Introduction to single chip microcomputer one-on-one learning strategy, independent development program immediately after reading

Dynamic planning 111

Arduino UNO + DS1302利用31字节静态RAM存储数据并串口打印
![[recommended collection] these 8 common missing value filling skills must be mastered](/img/ab/353f74ad73ca592a3f97ea478922d9.png)
[recommended collection] these 8 common missing value filling skills must be mastered
随机推荐
两个文件 合并为第三个文件 。
Some basic mistakes
Separate save file for debug symbols after strip
抖音实战~分享模块~生成短视频二维码
网上办理中金财富开户安全吗?
Nftgamefi chain game system development detailed solution - chain game system development principle analysis
抖音实战~首页视频~下拉刷新
The two files are merged into a third file.
IK word breaker
On the origin of the dispute between the tradition and the future of database -- AWS series column
飞天+CIPU体为元宇宙带来更大想象空间
Tree array
Uni app uses canvas to draw QR code
Preliminary analysis of serial port printing and stack for arm bare board debugging
Flutter TextField详解
Garbage collection mechanism of browser
Database SQL statement writing
问题解决:虚拟机无法复制粘贴文件
Using cache in vuex to solve the problem of data loss in refreshing state
Tiktok practice ~ search page ~ scan QR code