|
|||
MedianWrite a program that reads three integers per line from the standard input until three zeros are read. Except for the last scanned line, the program should write the median of the three scanned numbers (the middle of the sorted elements) for each line. 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 |