Preview:
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
    int num = 36,num2 = 6;
  for(int r=1;r<=16;r++){
      for(int s=0;s<=num;s++){
          if(r%4 == 0){num = num-6;
          cout<<' ';   }
          else if(r%4 != 0){ cout<<' ';}
      }
   for(int c=1;c<=num2;c++){
     if(r==1){cout<<'*';}
     else if(r%4==0){cout<<'*';}
     else if(r%4 != 0 && c==1 || c==num2){
         num2 = num2+6;
         cout<<'*';}
         else{cout<<'*';}
         
     }
       cout<<endl;
   }
  
    return 0;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter