Rotate number

When we rotate a number,the digit in units place is moved to top most place.Consider three digit numer 456.In this number units place is lowest place and hundreds place is top most place.When we rotate number,a digit in unit's place is moved to hundred's place.

#include < stdio.h >
#include < conio.h > 
void main()
{
	long n,div,n1;
	int d,pos,i;
	clrscr();
	printf("\n Enter a number : ");
	scanf("%ld",&n);
	printf("\n Enter the positions : ");
	scanf("%d",&pos);
	n1 = n;
	div = 1;
	while ( n1 > 9 )
	{
		n1 = n1 / 10;
		div = div * 10;
	} // while
	
	for(i=1;i < =pos;i++)
	{
		d = n % 10;
		n = n / 10;
		n = n + d * div ;
		printf("\n number after %d rotations is %ld",i,n);
	} // for
} // main