5628 - 连接两个字符串

#include<stdio.h>
int main()
{
	char s1[100] = {0};
	char s2[50] = { 0 };
	int a = 0, b = 0;
	scanf("%s", s1);
	scanf("%s", s2);
	while ('\0' != s1[a])
		a++;
	while (s1[a++] = s2[b++]);

	printf("%s\n", s1);
	return 0;
}