recent

Print Number pattern

Write a c Program to Print Number pattern:-
654321
54321
4321
321
21
1

#include <stdio.h>

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