Have two variables
- long counter
- long sum
use them wisely while iterating through the LL.
at the end print avg=sum/counter
Type: Posts; User: Mugambo
Have two variables
- long counter
- long sum
use them wisely while iterating through the LL.
at the end print avg=sum/counter