Program by :- Jayant Purohit
#include<stdio.h>
#include<conio.h>
void main()
{
int i,ch,j;
clrscr();
printf(":-Please enter the numbers of rows you want into the pyramid:-");
scanf("%d",&ch);
for(j=1;j<=ch;j++)
{
for(i=1;i<=j;i++)
{
printf("*");
}
printf("\n");
}
getch();
}
#include<conio.h>
void main()
{
int i,ch,j;
clrscr();
printf(":-Please enter the numbers of rows you want into the pyramid:-");
scanf("%d",&ch);
for(j=1;j<=ch;j++)
{
for(i=1;i<=j;i++)
{
printf("*");
}
printf("\n");
}
getch();
}
contact me at :- jforjaxi@yahoo.com
No comments:
Post a Comment
Please write your Views about this Post here:->;