c program to print given number pattern

Write a c program to print given number pattern
6
55
444
3333
22222
111111

#include <stdio.h>

int main()
{
    int k,j;
    for(k=6;k>=1;k--)
    {
        for(j=6;j>=k;j--)
        {
            printf("%d",k);
        }
        printf("\n");
    }
Copyright © C Program | Java | OpenGL Programming | Hadoop at Computaholics