Click here to Skip to main content
15,905,682 members

Comments by mohamadzadeh62 (Top 1 by date)

mohamadzadeh62 9-Feb-14 15:44pm View    
int main()
{
char A[10], B[10], s[20];
int i=0,j=0,l=0;
cout<<"Enter string1: ' '";
cin>>A;
cout<<"Enter string2: ' '";
cin>>B;
while (A[i]!='\0'|| B[l]!='\0')
{
s[j]=A[i];
s[j+1]=B[l];
cout<<s[j]<<s[j+1];
i++;
l++;
j+=2;
}



system ("pause");
return 0;
}