0
#include <stdio.h>
#include <conio.h>
main()
{
      int i,j,k,l,m,n;
       printf("Put in n nober of sqeur: ");
      scanf("%d",&n);

      printf("Whit wich nomber do you wanna start your squer?: ");
      scanf("%d",&m);

      for(j=m;j<=n+1;j++)
      {
          for(k=j;k<=n;k++)
           {
               printf(" %d",k);

           }
          for(l=1;l<j;l++)
           {
               printf(" %d",l);
           }                
          printf("n");                  

          }
      getch();
}

Editor's note: moved to the appropriate forum

Edited by iness.popovcic: moved to C forum

3
Contributors
2
Replies
15
Views
3 Years
Discussion Span
Last Post by 2teez
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.