题解 | #打印乘法表#
打印乘法表
https://www.nowcoder.com/practice/4c1ec287030d4ca1be63b258f88ebcc1
#include <stdio.h> int main() { int n = 0; int m = 0; int x = 1; scanf("%d", &n); while (m < n) { x = 0; m++; while (x < m) { x++; printf("%d * %d = %d", x, m, x * m); printf(" "); } printf("\n"); } return 0; }