URI Problem 1238 (Combiner) solution( Bangla ) | C language

**Before watching this make sure that you’ve tried enough**


int main()
    int i,j,n,l1,l2,l;
    char str1[52],str2[52];
    for(i = 0;i < n;i++){
        scanf("%s %s",str1,str2);
        l1 = strlen(str1);
        l2 = strlen(str2);
        if(l1 >= l2)l = l1;
        else l = l2;
        for(j = 0;j < l;j++){
            if(j < l1)printf("%c",str1[j]);
            if(j < l2)printf("%c",str2[j]);

    return 0;


If this solution helped you, please share this with your friends.
And if you have anything to say, let me know in the comment section.

More solutions are coming so Like our Facebook page and Subscribe to our YouTube channel to stay connected.

Leave a Comment