c program to print given number pattern

Write a c program to print given number pattern
             6
           65
        654
     6543
  65432
654321

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