#include <stdio.h>

int main() {
    int i,j,k;
    // int a;
    // scanf("%d", &a);
    // for(i=1;i<=9;i++){
    //     printf("2 x %d = %d\n", i, i*2);
    // }

    // for(i=2;i<10;i++){
    //     for(j=1;j<10;j++){
    //         printf("%d x %d = %d\n",i,j,i*j);
    //     }
    //     printf("\n");
    // }

    for(i=1;i<=5;i++){
        for(k=i;k<5;k++){
            printf("S");
        }
        for(j=1;j<=i;j++){
            printf("*");
        }
        printf("\n");
    }
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: