M
M
Monile2021-09-22 01:22:19
Algorithms
Monile, 2021-09-22 01:22:19

How to determine and display the number of words whose second and last characters are the same?

I enter a string with delimiters from the console, in my case _ - they can be unlimited. I don't understand how to remember the last character and 2, and then compare them and move on to another word on the same line after the delimiter.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question