#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
void Mul(int num) {
int i;
int j;
for (i = 1; i <= num; i++) {
for (j = 1; j <= i; j++) {
printf("%d*%d=%d ", i, j, i*j);
}
putchar('\n');
}
}
int main(){
int num = 0;
scanf("%d", &num);
Mul(num);
system("pause");
return 0;
}
来源:oschina
链接:https://my.oschina.net/u/4251026/blog/3134461