// copying of string using for loop
#include <stdio.h>
#include<string.h>
int main() {
char a[20],c[20];
int i,l;
scanf("%[^\n]%*c",a);
l=strlen(a);
for(i=0;i<l;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: