写出c语言代码:题目描述输入整数N输出相应方阵。输入一个整数N。 0 n 10 输出一个方阵每个数字的场宽为3。
#include <stdio.h>
int main() { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { printf("%3d", i*j); } printf("\n"); } return 0; }
原文地址: https://www.cveoy.top/t/topic/ffu6 著作权归作者所有。请勿转载和采集!