I am assigned the sort-of famous RMS assignment. This is what I have so far, it is just beating me. My biggest confusion is how to add the entries up. I think I will okay with squaring them, dividing the total and obviously the sqrt() at the end.

```
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double posNum;
double posPow, sum;
int counter = 0;
posPow = 1;
posNum = 1;
while (posNum != (-1))
{
counter++;
cout << "Enter a positive number (-1 to exit): ";
cin >> posNum;
posPow = pow (posNum, 2);
sum = posPow + posPow;
}
cout << sum << endl;
}
```