#include <stdio.h>

int main() {
int i,k, j;
for(i=0;i<3;i=i+1)
{ for(j=3;j>i+1;j=j-1)
  { printf(" ");}
  for(k=0;k<1+i;k=k+1)
  {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: