For some reason when i run this program i get the wrong answers. my sum and average is doubled and my count is added too much. What did i do wrong?
using namespace std;
cout<<"Enter a number"<<endl;
i have to use the command when cin != null though for my while loop