[Solved] Robert is given a string that ends with a character or a number
![[Solved] Robert is given a string that ends with a character or a number [Solved] Robert is given a string that ends with a character or a number](https://realcoder.techss24.com/wp-content/uploads/2023/02/Solved-Robert-is-given-a-string-that-ends-with-a-character-or-a-number-768x432.png)
Robert is given a string that ends with a character or a number. He has to check the length of the given string and append it to the end in such a way that if the original string ends with…