New Want to Write for Computaholics ? if Yes Contact us at "contact@computaholics.in"

program to print given number pattern

Write a c program to print given number pattern
1
21
321
4321
54321
654321


#include <stdio.h>

int main()
{
    int k,j;
    for(j=1;j<=6;j++)
    {
        for(k=j;k>=1;k--)
        {
            printf("%d",k);
        }
        printf("\n");
    }
}

Copyright © C Program | Java | OpenGL Programming | Hadoop at Computaholics