#include<stdio.h>
#include<string.h>
int length(char ch[])
{
int i =0;
while(ch[i] != 0)
{
i++;
}
return i;
}
int main()
{
int len1,len2,len3;
int i,j,k,a;
char anik[100];
char rob[100];
char an[100];
char ar[1000];
gets(anik);
gets(rob);
gets(an);
len1 = length(anik);
len2 = length(rob);
len3 = length(an);
for(i=0;i<len1;i++)
{
ar[i] = anik[i];
}
for(j = i,k = 0;k<len2;j++,k++)
{
ar[j] = rob[k];
}
for(k = j,a = 0;a<len3;a++,k++)
{
ar[k] = an[a];
}
ar[k] = '\0';
printf("%s",ar);
return 0;
}
#include<string.h>
int length(char ch[])
{
int i =0;
while(ch[i] != 0)
{
i++;
}
return i;
}
int main()
{
int len1,len2,len3;
int i,j,k,a;
char anik[100];
char rob[100];
char an[100];
char ar[1000];
gets(anik);
gets(rob);
gets(an);
len1 = length(anik);
len2 = length(rob);
len3 = length(an);
for(i=0;i<len1;i++)
{
ar[i] = anik[i];
}
for(j = i,k = 0;k<len2;j++,k++)
{
ar[j] = rob[k];
}
for(k = j,a = 0;a<len3;a++,k++)
{
ar[k] = an[a];
}
ar[k] = '\0';
printf("%s",ar);
return 0;
}
Comments
Post a Comment