编写程序,打印出9×9乘法表

                          编写程序,打印出9×9乘法表

#include"stdio.h"
int main()
{
int a[9]={1,2,3,4,5,6,7,8,9};
int i,j;
int ji;
for(i=0;i<9;i++)
{ for(j=0;j<=i;j++)
{
ji=a[i]*a[j];
printf("%d “,ji);
if(i==j)
{
printf(”\n");
}
}
}
return 0;
}

https://img-blog.csdnimg.cn/20190723090204454.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQwODkyMzI3,size_16,color_FFFFFF,t_70)

你可能感兴趣的:(编写程序,打印出9×9乘法表)