#include<stdio.h>
#include<string.h>
main()
{
char first[20], second[20],result[40];
int i,j;
printf("Enter first string:");
gets(first);
printf("Enter second string:");
gets(second);
for(i=0;i<strlen(first);i++)result[i]=first[i];
for(j=0;j<strlen(second);i++,j++)result[i]=second[j];
result[i]='\0';
printf("%s",result);
}
0 comments :
Post a Comment