#include<stdio.h>void main(){int i,j;
for(i=1;i<=9;i++) { for(j=1;j<=i;j++) { printf("%d * %d = %d",j,i,i*j); } printf("\n"); } getchar();
}
运行结果如下