请大家帮忙赐教一下:怎么把这两个while语句改成for语句啊?
main(){
char a[30],b[30];
int i=0,j=0;
clrscr();
printf("please input a\n");
gets(a);
printf("please input b\n");
gets(b);
while(a[i]!='\0') 怎么改写成for语句啊?
i++;
while(b[j]!='\0')
a[i++]=b[j++];
a[i]='\0';
printf("the new string is: %s\n",a);
}