竞赛
考级
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i = 0;i < n;i++){ for(int j = 1;j <= n;j++){ cout<<j+i*n<<' '; } cout<<endl; } return 0; }
༺ཌༀ黄泉同志ༀད༻
能给个赞吗ovo
一只雪梨
???
ddgd
zsy
喵仔牛奶
无敌的鳖佬仔给老爷爷猜猜被
#include<iostream> using namespace std; int a[15][15]; int n; int main(){ cin >> n; int sum = 1; for(int i = 1;i <= n;i++){ for(int j = 1;j <= n;j++){ a[i][j] = sum; cout << a[i][j] << " "; sum++; } cout << "\n"; } return 0; }
敖东驰
提交答案之后,这里将显示提交结果~