You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
435 B

#include<stdio.h>
int main()
{
int i,j;
for(i = 1; i <= 3; i++)
{
for(j = 1; j <= (4 - i); j++){
printf(" ");
}
for(j = 1;j <= (-1 + 2 * i); j++)
{
printf("*");
}
printf("\n");
}
for(i = 1; i <= 2; i++)
{
for(j = 1;j <= ( 2 + i - 1 );j++)
{
printf(" ");
}
for(j = 1;j <= ( 5 - 2 * i );j++)
{
printf("*");
}
printf("\n");
}
return 0;
}