/* Merging Two Arrays*/
#include<stdio.h>
main()
{
	int i,j;
	char a[150],b[150],c[150];
	clrscr();
	for(i=0,scanf("%c",&a[i]);a[i]!='$';i++,scanf("%c",&a[i]));
	a[i]='\0';
	for(j=0,scanf("%c",&b[j]);b[j]!='$';j++,scanf("%c",&b[j]));
	b[j]='\0';
	printf("After Merging\n");
	for(i=0;a[i]!='\0';i++)		/* First input process */
		c[i]=a[i];
	for(j=0;b[j]!='\0';j++,i++)     /* Second input process*/
		c[i]=b[j];
	c[i]='\0';
	for(i=0;c[i]!='\0';i++)
	printf("%c",c[i]);
	getch();
}

/* Exercise: 1. Read Char from KB until # and copy the last n char */