Programming contests

50 Programming Exercise for Beginners

January 2, 2019 12:00 AM – December 31, 2019 12:00 AM

String Reversion

Write a program that reads strings of up to 15 characters from the standard input until the „THE END” string is read, one string per line. The program should write the reverse of the scanned strings to the standard output, each in a separate line.

Sample Input

  1. komor romok
  2. almamag
  3. apa a pap
  4. talpra magyar
  5. THE END
download as text file

Output for Sample Input

  1. komor romok
  2. gamamla
  3. pap a apa
  4. raygam arplat
download as text file

One possible solution is available in: main.c.

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. 03/01/2019