Advertisement
Guest User

Alipire

a guest
Nov 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <cstring>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {char s1[100],s2[100];
  9. int n;
  10. gets(s1);
  11. gets(s2);
  12. cin>>n;
  13. strncat(s1,s2,n);
  14. puts(s1);
  15.  
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement