57

乘法表

https://ac.nowcoder.com/acm/problem/22206

两种办法

#include <bits/stdc++.h>
using namespace std;

int main()
{
for (int i = 1; i <= 9; i++)
{
for (int j = 1; j <= i; j++)
{
printf("%d*%d=%2d ", j, i, i * j);
}
cout << endl;
}
return 0;
}

#include<bits/stdc++.h>
using namespace std;

int main()
{
cout << "11= 1" << endl;
cout << "1
2= 2 22= 4"<< endl;
cout << "1
3= 3 23= 6 33= 9"<< endl;
cout << "14= 4 24= 8 34=12 44=16"<< endl;
cout << "15= 5 25=10 35=15 45=20 55=25"<< endl;
cout << "1
6= 6 26=12 36=18 46=24 56=30 66=36"<< endl;
cout << "1
7= 7 27=14 37=21 47=28 57=35 67=42 77=49"<< endl;
cout << "18= 8 28=16 38=24 48=32 58=40 68=48 78=56 88=64"<< endl;
cout << "19= 9 29=18 39=27 49=36 59=45 69=54 79=63 89=72 9*9=81"<< endl;
return 0;
}

全部评论
这第二种太秀
2 回复 分享
发布于 2023-04-14 14:39 安徽

相关推荐

05-12 11:09
已编辑
门头沟学院 后端
已注销:没必要放这么多专业技能的描述。这些应该是默认已会的,写这么多行感觉在凑内容。项目这块感觉再包装包装吧,换个名字,虽然大家的项目基本都是网上套壳的,但是你这也太明显了。放一个业务项目,再放一个技术项目。技术项目,例如中间件的一些扩展和尝试。
点赞 评论 收藏
分享
评论
14
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务