c program to print given number pattern

Write a c program to print given number pattern
123456
234561
345621
456321
654321


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