Run ID:64289

提交时间:2024-01-21 12:56:13

#include<iostream> using namespace std; int main(){ int a[20][20] = {{0}{0}}; int n,b; cin>>n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if(i < j){ cout<< i+1 << " " ; }else{ cout<< j+1 << " " ; } } } return 0; }