|
|||
Average of Integers #1Write a program that reads integers from the standard input and computes their average. Input SpecificationThe first line of the input contains a positive integer n, which is followed by n integers (one per line). Output SpecificationThe program should write a single line to the standard output containing the average of the n numbers with a precision of two decimal places. 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 |