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