标签:can 起点 bsp 输出矩阵 clu ble for color main
#include<stdio.h> int main() { int n,m,i,j,a[20][20]; while(scanf("%d %d",&n,&m)!=EOF) { int t=1; for(i=0;i<n;i++) { for(j=0;j<m;j++) { a[i][j]=t; t++; } } for(i=0;i<n;i++) { for(j=0;j<m-1;j++) { printf("%d ",a[i][j]); } printf("%d\n",a[i][m-1]); } } return 0; }
标签:can 起点 bsp 输出矩阵 clu ble for color main
原文地址:https://www.cnblogs.com/chenlong991223/p/9967419.html