array and doubles.


#include <iostream>
#include <cmath>

using namespace std;


[/code]
Last edited on
The sum should be a double in the findaverage function.
thank you peter fixed it.
Topic archived. No new replies allowed.