for (int a = 1; a <= 9; a++) {
for (int b = 1; b <= a; b++) {
printf("%d × %d= %-2d ", b, a, b * a);
}
printf("\n");
}
C语言打印九九乘法表代码分享
最新推荐文章于 2024-11-11 16:07:51 发布
for (int a = 1; a <= 9; a++) {
for (int b = 1; b <= a; b++) {
printf("%d × %d= %-2d ", b, a, b * a);
}
printf("\n");
}