#include <stdio.h>
int main() {
int i, j, k;
for(i=1;i<=5;i++){
for(j=1;j<=i;j++){
printf("*");
}
printf("\n");
}
for(i=1;i<=5;i++){
for(j=i;j<=4;j++){
printf(" ");
}
for(k=1;k<i*2;k++){
printf("*");
}
printf("\n");
}
for(i=1;i<=5;i++){
for(j=5;j>=i;j--){
printf("*");
}
printf("\n");
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: