C Program to Print Inverted Pyramid

February 14, 2025 No Comments » Hits : 442





Problem Statement : Program to Print Inverted Pyramid



#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
char ch = '*';
clrscr();
for(i=4;i>=0;i--)
{
printf("\n");
   for(j=0;j<i;j++)
       printf("%c",ch);
}
getch();
}

Bookmark & Share

Incoming search terms: