eolymp
bolt
Try our new interface for solving problems
Problems

Template 3

published at 1/2/24, 8:40:52 pm

include <bits/stdc++.h>

using namespace std; int main() { long long n; cin>>n; for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(i==j || i+j==n-1) cout<<"*"; else cout<<" "; } cout<<endl; } }