ad

Tuesday, March 11, 2025

C Program print Inverted Right Half Pyramid Star Pattern

C Program print Inverted Right Half Pyramid  Star Pattern

Example :- 

//inverted half pyramidoc c language


#include<stdio.h>
int main()
{
int i,j,row;
printf
("enter number row");
scanf("%d",&row);
for(i=row;i>=1;i--)
{
for
(j=1;j<=i;j++)
{
printf
("*");
}
printf
("\n");
}
getch
();
}

C Program print Inverted Right Half Pyramid  Star Pattern

Program Output ;-  Run 1 Time


C Program print Inverted Right Half Pyramid  Star Pattern

Program Output ;-  Run 2 Time





Related Post :-


No comments:

Post a Comment