#include <stdio.h>
int main() {
int a,b,n;
scanf("%d",&n);
for(a=1;a<=n;a++){
for(b=a;b<=n;b++){if(b!=n){printf("%d*%d=%d\t",a,b,a*b);}
else{printf("%d*%d=%d\n",a,b,a*b);break;}
}
}
return 0;
}
乘法表
原文:https://www.cnblogs.com/p201821430005/p/10493262.html