C Program Print Inverted Pyramid
Example
#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 Pyramid
Program Output ;- Run 1 Time
C Program Print Inverted Pyramid
Program Output ;- Run 2 Time
No comments:
Post a Comment