#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
if(i%2==0){
cout<<" ";
}
cout<<"*";
for(int j=0;j<n-1;j++){
cout<<" *";
}
cout<<"\n";
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: