Search C Program | nimishsoft@gmail.com

Number Pattern - 8

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

4 comments:

  1. #include
    int 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;
    }

    ReplyDelete