Problems
If you continue to input integers from 0 to 100 and a number outside the range is input,
Write a program that outputs the sum and average of the data entered up to that point.
(The average is rounded to the first decimal place.)
Example
55 100 48 36 0 101
sum : 239
avg : 47.8
Source
자기주도C언어프로그래밍