coding-
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,N;
clrscr();
printf("enter the terms:");
scanf("%d",&N);
for(i=1;i<=N;j++)
{
for(j=1;j<=i;j++)
{
printf("*");
}
printf("\n");
}
getch();
}
OUTPUT-
*****
****
***
**
*
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,N;
clrscr();
printf("enter the terms:");
scanf("%d",&N);
for(i=1;i<=N;j++)
{
for(j=1;j<=i;j++)
{
printf("*");
}
printf("\n");
}
getch();
}
OUTPUT-
*****
****
***
**
*
Comments
Post a Comment
Please Subscribe and Comments my blog site.