C-乘法口诀表
作者:互联网
#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<math.h> int main() { //乘法口诀表 //1*1=1 //2*1=2 2*2=4 //3*1=3 3*2=6 3*3=9 int i = 0; for (i = 1; i <= 9; i++) { //打印一行 int j = 1; for (j = 1; j <= i; j++) { printf("%d*%d=%-2d ", i, j, i * j); } printf("\n"); } return 0; }
标签:main,SECURE,int,口诀,include,乘法 来源: https://www.cnblogs.com/zzy-c/p/16057627.html