// copying of string using for loop
#include <stdio.h>
#include<string.h>
int main() {
char a[20],b[20],c[40];
int i,la,lb;
scanf("%[^\n]%*c",a);
scanf("%[^\n]%*c",b);
la=strlen(a);
lb=strlen(b);
for(i=lb;i<(la+lb-1);i++){
c[i]=a[i];
}
printf("%s",c);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: