Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char ch[50],ch1[50],ch2[50];
- int i,j,l,ll,lll;
- gets(ch);
- gets(ch1);
- l=strlen(ch);
- ll=strlen(ch1);
- lll=l+ll;
- for(i=0;ch[i]!='\0';i++)
- {
- ch2[i]=ch[i];
- }
- for(j=l-1,i=0;j<lll,ch1[i]!='\0';j++,i++)
- {
- ch2[j]=ch1[i];
- }
- ch2[j]='\0';
- printf("%s",ch2);
- return 0;
- }
Add Comment
Please, Sign In to add comment