Wednesday, October 7, 2020

C Inverted Pyramid Star Pattern

 

CODE :-

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

    Choose :
  • OR
  • To comment
No comments:
Write Comments