int main()
{
int i = 1;
int j = 0;
for (i = 1; i <= 9; i++)
{
for (j = 1; j <= i; j++)
{
printf("%d*%d=%-2d ", j, i, j * i);//%-2d表示控制宽度为两个字符,且右对齐
}
printf("\n");
}
return 0;
}
标签:%-,九九乘法,return,语言,int,2d,printf From: https://blog.51cto.com/u_16220477/7465612