recent

Number patterns sequence

Write a program to Print Given sequence:-

1234567
123456
12345
1234
123
12
1

#include <stdio.h>

int main()
{
    int j,k;
    for(j=7;j>=1;j--)
    {
        for(k=1;k<=j;k++)
        {
            printf("%d",k);
        }
        printf("\n");
    }
}
Powered by Blogger.