#include "List.h" #include int main() { ecci::List list; double value = 0.0; while ( std::cin >> value ) list.add(value); double sum = 0.0; for ( ecci::List::Iterator itr = list.begin(); itr != list.end(); itr++ ) sum += *itr; list.print(); std::cout << "\n\nPromedio = " << sum / list.getCount() << std::endl; for ( ecci::List::Iterator itr = list.rbegin(); itr != list.rend(); --itr ) sum += *itr; }