输入格式:
在两行分别输入两个长度小于20的字符串。
输出格式:
在一行中直接输出连接后的字符串。
输入样例:
abc
123
输出样例:
abc123
#include <stdio.h>
main()
{
char str1[20],str2[20];
int i=0,j=0;
scanf("%s",str1);
scanf("%s",str2);
while(str1[i]!='\0'){
i++;
}
while(str2[j]!='\0'){
str1[i++]=str2[j++];
}
str1[i]='\0';
printf("%s",str1);
return 0;
}