Programming contests

50 Programming Exercise for Beginners

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

Minimum of Integer Numbers #2

Write a program that reads integers from the standard input and determines their minimum.

Input Specification

Each of the input lines contains an integer. The input is terminated by end-of-file (EOF).

Output Specification

The program should write a single line to the standard output containing the minimum of the numbers.

Sample Input

  1. 1
  2. 2
  3. 5
  4. -4
  5. 3
download as text file

Output for Sample Input

  1. -4
download as text file
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