write a program to print half pyramid(pattern).
#include<stdio.h>
#include<conio.h>
int main()
{
int i,j,n;
printf("enter the number ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
{
printf("🔥");
}
printf("\n");
}
return 0;
}
Comments
Post a Comment