C Program To Display Decreasing Star Triangle (Pattern)
C Program for Decreasing Star Triangle Pattern
#include<stdio.h>
int main()
{
int i,j;
printf("\n");
for (i=4;i>=1;i--)
{
for (j=1;j<=i;j++)
printf("*\t");
printf("\n");
}
printf("\n");
return 0;
}
/* Output of above code:-
* * * *
* * *
* *
*
*/