/* Copy left n char to another array*/
#include<stdio.h>
main()
{
	int i,j,n;
	char a[150],b[150];
	clrscr();
	for(i=0,scanf("%c",&a[i]);a[i]!='$';i++,scanf("%c",&a[i]));
	a[i]='\0';
	printf("enter the number of left n char\n");
	scanf("%d",&n);
	for(i=0,j=0;i< n;i++,j++)
		b[j]=a[i];
	b[j]='\0';
	for(j=0;b[j]!='\0';j++)
	printf("%c",b[j]);
	getch();
}