当前位置:网站首页>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 .
边栏推荐
- C primer plus学习笔记 —— 3、字符的IO(输入/输出)
- 股票开户的具体步骤是什么?网上开户安全吗?
- Development of NFT for digital collection platform
- MySQL recharge
- Can I open an account online? Is it safe?
- MySQL - table creation and management
- Résolution du problème: la machine virtuelle n'a pas pu copier et coller le fichier
- 证券开户安全吗,有没有什么危险呢
- Installation and use of logstash
- 460million zongzi were sold in half a year. How big is the "imagination space" of time-honored brands?
猜你喜欢
Mongodb implements creating and deleting databases, creating and deleting tables (sets), and adding, deleting, modifying, and querying data

On the escape of inequality value

飞天+CIPU体为元宇宙带来更大想象空间

Keep alive cache component in Vue

关于Qt数据库开发的一些冷知识

抖音实战~分享模块~复制短视频链接

Tiktok practice ~ search page ~ video details

IK word breaker

西瓜书重温(七): 贝叶斯分类器(手推+代码demo)

Tree array
随机推荐
Unit test of boot
Keep alive cache component in Vue
Swagger: how to generate beautiful static document description pages
0基础学c语言(3)
Introduction to single chip microcomputer one-on-one learning strategy, independent development program immediately after reading
The two files are merged into a third file.
C primer plus learning notes - 3. Character IO (input / output)
Daily basic use of alicloud personal image warehouse
Kubernetes resource topology aware scheduling optimization
抖音实战~搜索页面~视频详情
[most detailed] the latest and complete redis interview (70)
Separate save file for debug symbols after strip
Pinda general permission system (day 1~day 2)
8VC Venture Cup 2017 - Final Round C. Nikita and stack
抖音实战~分享模块~复制短视频链接
关于不等式取值转义的思路
Can I open an account online? Is it safe?
Pinda general permission system (day 3~day 4)
超分之VRT
Summary of several common UML diagrams