Print given number pattern

Write a c Program to Print given number pattern
1
12
123
1234
12345
123456


#include <stdio.h>

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

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