Preview:
#include <iostream>
using namespace std;

int main() {
                  
       /* *****
           ****
            ***
             **
              *  */

for(int r=1;r<=5;r++){
    
    for(int s=1;s<=6-r ;s++){
        cout<<' ';
    }
    
    for(int c=0;c<=5-r;c++){
        cout<<'*';
    }
    
    cout<<'\n';
    
    
}




        
        
  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