//To Read and Display the word
//Read Char from KB until $ is given and copy to another array
#include<stdio.h>
main()
{
	int i;
	char a[100],b[100];
	clrscr();
	printf("enter the input\n");
	i=0;
	scanf("%c",&a[i]);
	while(a[i]!='$')
	{
		i++;
		scanf("%c",&a[i]);
	}
	printf("output\n");
	a[i]='\0';
	i=0;
	while(a[i]!='\0')
	{
		b[i]=a[i];
		i++;
	}
	b[i]='\0';      //array copying
	i=0;
	while(b[i]!='\0')
	{
		printf("%c",b[i]);
		i++;
	}

	getch();
}
//	Exercise 1: Copy the left n character to another array