#include <stdio.h>

int main(){

    int i,j,k=1;

    int loop_count = 10;

    for(i=1;i<loop_count;i++){

        if( i > 1){

            for(j=0;j<i+k;j++){
                if( i == 2 )
                    printf("*");
                else{
                    if( j%k == 0)
                        printf("*");
                    else
                        printf(" ");
                }
            }
            k++;
        }else
            printf("*");

        printf("\n");
    }

    return 0;
}

Do you have a question for us?

Nice practice code!
You should give this project a name.

Just for practice, can you make this symmetrical?

Yes, just for practice What symmetry?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.