Loops Task3
Здравейте решавам тази задача ->
Problem 3. Min, Max, Sum and Average of N Numbers
Write a program that reads from the console a sequence of n integer numbers and returns the minimal, the maximal number, the sum and the average of all numbers (displayed with 2 digits after the decimal point). The input starts by the number n (alone in a line) followed by n lines, each holding an integer number.
http://pastebin.com/FkYQ2p4w ето го и кода.Всичко работи перфекетно,само ми дава грешка като извеждам avg-> Use of unassigned local variable 'avg' .Как да я оправя?
Благодаря.