当前位置:网站首页>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 language file cursor fseek
- Sentinelresource annotation details
- The king of Internet of things protocol: mqtt
- Invocation failed Unexpected end of file from server
- Disruptor local thread queue_ Use transprocessor processor and workpool to compare consumption - Notes on inter thread communication 005
- Analysis on development technology of NFT meta universe chain game system
- Separate save file for debug symbols after strip
- JWT operation tool class sharing
- Chain game development finished product source code chain game system development details
- 西瓜书重温(七): 贝叶斯分类器(手推+代码demo)
猜你喜欢
随机推荐
Three basic backup methods of mongodb
网上办理中金财富开户安全吗?
Button how to dynamically set drawablebottom (setcomposunddrawables is invalid)
数据库范式和主码的选择
Feitian +cipu body brings more imagination to the metauniverse
What are the specific steps for opening a stock account? Is it safe to open an account online?
【最详细】最新最全Redis面试大全(70道)
2022/02/14 line generation
Database SQL statement writing
515. find the maximum value in each tree row
抖音实战~首页视频~下拉刷新
抖音实战~分享模块~复制短视频链接
论数据库的传统与未来之争之溯源溯本----AWS系列专栏
MySQL中存储过程的详细详解
mongoDB的三种基础备份方法
Tiktok practice ~ sharing module ~ copy short video link
Installation and use of logstash
Unity - URP get camera stack
Is it safe to open a securities account? Is there any danger
Can I open an account online? Is it safe?