Hi, I am trying to write a program that tells the user the ammount of digits that are in a number for multiple numbers. I have it to the point where it will tell me the digits of the first number but it wil just write it an infinite number of times and never go to the next number. Can somebody please help me i can not figure this out, here is what i have so far:

```
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
void main (void)
{
double in;
int x;
ifstream inf("E:\\Homework8input.txt");
ofstream outf("E:\\Homework8output.txt");
inf>>in;
while (in<2000000000 && in>-2000000000)
{
x = log10(in)+1;
outf<<"digits = "<<x<<endl;
}
}
```

thanks, dustin