![Write a C++ program to create a new string taking the first character from a given string and the last character from another given string. If the length of any given string Write a C++ program to create a new string taking the first character from a given string and the last character from another given string. If the length of any given string](https://daafoor.com/assets/dropzone/uploads/tinymce_images/questions/1761/mceu_28956400311620757581166.png)
Write a C++ program to create a new string taking the first character from a given string and the last character from another given string. If the length of any given string
![PHP Exercises: Exchange the first and last characters in a given string and return the new string - w3resource PHP Exercises: Exchange the first and last characters in a given string and return the new string - w3resource](https://www.w3resource.com/w3r_images/php-basic-algorithm-exercise-7.png)
PHP Exercises: Exchange the first and last characters in a given string and return the new string - w3resource
![PHP Exercises: Exchange the first and last characters in a given string and return the new string - w3resource PHP Exercises: Exchange the first and last characters in a given string and return the new string - w3resource](https://www.w3resource.com/w3r_images/php-basic-algorithm-image-exercise-7.png)