Write C Program to Print Inverted Half Pyramid of Stars Pattern
Example
#include<stdio.h>
void main ()
{
int i,j,r;
printf("enter the number");
scanf("%d",&r);
for(i=r;i>=1;i--)
{
for(j=1;j<=i;j++)
{
printf("*");
}
printf("\n");
}
return 0;
}
Write C Program to Print Inverted Half Pyramid of Stars Pattern
Program Output :-
Related Post :-
No comments:
Post a Comment