|
|||
PalindromesWrite a program that reads strings of up to 29 characters from the standard input, one per line, until the scanned string is a palindromic string. Palindromes have the same characters in the same order when read backwards as if read forwards. With the exception of the last string scanned, the program should write to the standard output each string and its length, separated by a space character. Sample Input
Output for Sample Input
Acknowledgement
This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |