0

hi I wanna find out the number of integers from an input number. For example if i enter 84075, the output should be 5.

this is what i came up with.....im new to c++ still>.<

```
#include <iostream>
using namespace std;
int main()
{
int numCount, number;
bool integer;
cout << " Enter an integer: " << endl;
cin >> number;
if(number == ' ')
{
integer = 0;
}
else if(number != ' ' )
{
numCount = 1;
integer = 1;
numCount++;
}
cout << numCount << " integers " << endl;
}
```