#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
void printMt(int n){
int i, j;
for (i = 1; i <= n; ++i){
for (j = 1; j <= i; ++j){
printf("%d*%d=%2d ", j, i, j*i);
}
putchar('\n');
}
}
int main(){
int n;
printf("请输入一个整数: \n");
scanf("%d", &n);
printMt(n);
system("pause");
return 0;
}
定义一个函数实现打印n阶乘法口诀表
猜你喜欢
转载自blog.csdn.net/weixin_44781107/article/details/89036874
今日推荐
周排行