54321 5432 543 54 5
#include <stdio.h>
int main()
{
int i, j;
for(i=1;i<=5;i++)
{
for(j=5;j>=i;j--)
{
printf("%d",j);
}
printf("\n");
}
return 0;
}
Related Links:
- More Number Pattern Programs
- Star Pattern Programs in C
- Alphabet Pattern Programs in C
- Series Programs in C
54321
ReplyDelete5432
543
54
5
#include
ReplyDeleteint main()
{
int n;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
for(int j=n;j>=i;j--)
{
printf("%d ",j);
}
printf("\n");
}
return 0;
}
5
ReplyDelete54
543
5432
54321
Plz is ka code batoa
Delete