Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int main ()
- {
- char a[100],b[100],*p,*q;
- int n=0;
- printf("Introdu a,b:");
- scanf("%s%s",a,b);
- p=a;q=b;
- while(p!=0 && q!=0)
- {p++;q++;printf("%s%s",*p,*q);}
- if(p==0)
- while(q!=0)
- {n--;q++;}
- else
- while(p!=0)
- {n++;p++;}
- printf("%d",n );
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment