#include<stdio.h>
int main()
{
printf("------1--2--3--4--5--6--7--8--9\n");
printf("-------------------------------\n");
int i = 0;
for ( i = 1; i <= 9; i++)
{
int j = 0;
printf("%d | ", i);
for (j = 1; j <= 9; j++)
{
if (j * i < 10 && (j+1) * i > 9)
printf("%d ", j * i);
else if (j * i < 10 && (j + 1) * i < 10)
printf("%d ", j * i);
else printf("%2d ", j * i);
}
printf("\n");
}
return 0;
}
链接
介绍一下 %d (c语言入门易错)_int在c语言%d-CSDN博客
介绍一下for break continue 函数(c基础)_for语句中continue跳过表达式三吗-CSDN博客
标签:10,九九乘法,--,基础,else,int,CSDN,printf From: https://blog.csdn.net/lb3636363636/article/details/143591337