Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstring>
- using namespace std;
- string s(string test){
- string fin = test;
- for(int a = strlen(test.c_str())-1;a>=0;a--)
- fin += test[a];
- return fin;
- }
- int main(){
- cout<<s("Hello")<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement