当前位置:网站首页>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");
}
}
这版差不多了。
边栏推荐
- [recommended collection] these 8 common missing value filling skills must be mastered
- Serial port application program based on gd32
- 抖音实战~分享模块~复制短视频链接
- Pinda general permission system (day 1~day 2)
- Tiktok practice ~ homepage video ~ pull-down refresh
- 【推荐收藏】这8个常用缺失值填充技巧一定要掌握
- Tree array
- Disruptor local thread queue_ Use transprocessor processor and workpool to compare consumption - Notes on inter thread communication 005
- IK分词器
- The king of Internet of things protocol: mqtt
猜你喜欢

MySQL recharge

On the origin of the dispute between the tradition and the future of database -- AWS series column

Project practice 6: distributed transaction Seata

On the escape of inequality value

Guomingyu: Apple's AR / MR head mounted display is the most complicated product in its history and will be released in January 2023

MySQL - table creation and management

Flutter TextField详解

Unit test of boot

Pinda general permission system (day 3~day 4)

西瓜书重温(七): 贝叶斯分类器(手推+代码demo)
随机推荐
Is it safe to open an account for CICC Wealth Online?
Feitian +cipu body brings more imagination to the metauniverse
String string is converted to jsonarray and parsed
Disruptor local thread queue_ Use transprocessor processor and workpool to compare consumption - Notes on inter thread communication 005
开户可以在网上开么?能安全吗?
When does the mobile phone video roll off?
【最详细】最新最全Redis面试大全(70道)
Convex hull problem
mongoDB的三种基础备份方法
Serial port application program based on gd32
Refresh the strong pointer assignment problem in the HP-UX system of Sanguan
问题解决:虚拟机无法复制粘贴文件
Nftgamefi chain game system development detailed solution - chain game system development principle analysis
mysql的充值问题
MySQL中存储过程的详细详解
抖音实战~分享模块~复制短视频链接
网上办理中金财富开户安全吗?
Tiktok practice ~ search page ~ video details
好物推薦:移動端開發安全工具
Tiktok practice ~ search page ~ scan QR code