<pre name="code" class="cpp">#include<stdio.h>
#include<stdlib.h>
int main()
{
int i=0;
for(i=1;i<10;i++)
{
int j=0;
for(j=1;j<=i;j++)
{
printf("%d*%d=%d ",i,j,i*j);
}
printf("\n");
}
system("pause");
return 0;
}
运行结果如下: