#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