Advertisement
konoha279

Câu 4

Feb 20th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. string xenke(string s1, string s2)
  2. {
  3.     int n=0;
  4.     string temp;
  5.     while (s1[n]!=NULL || s2[n]!=NULL)
  6.     {
  7.         if (s1[n]!=NULL) temp+=s1[n];
  8.         if (s2[n]!=NULL) temp+=s2[n];
  9.         n++;
  10.     }
  11.     return temp;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement