program to print given number pattern

Write a c program to print given number pattern
1
22
333
4444
55555
666666


#include <stdio.h>

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

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