Also im trying to do this without the use of arrays.

---------------------------------------------------------------------------------------------------------------------

// This program takes all numbers entered and displays total numbers entered, // sum of all numbers, and shows how many positive and negative numbers that // were entered total. Also displays the number that is repeated the most in // a row and how many times it was repeated in a row. #include<iostream> using namespace std; int main() { float num1; float tsum=0; float rnum=0; int pcount=0; int ncount=0; int numcount=0; int rcount=0; cout<< " Please enter as many numbers as you wish and press 9999 to stop,"<<endl; cout<< endl; do { cout<< " Please enter a number: "; cin >> num1,rnum; cout<<endl; if (num1 !=9999) numcount++; if (num1>= 0 && num1 != 9999) pcount++; if (num1< 0 && num1 != 9999) ncount++; if (num1 != 9999) tsum+=num1; if (num1==rnum && num1 !=9999) rcount++; } while(num1 != 9999); cout<<endl; cout<< " The total numbers entered is "<<numcount<<endl; cout<<endl; cout<< " The total number of negative numbers entered is "<<ncount<<endl; cout<<endl; cout<< " The total number of positive numbers entered is "<<pcount<<endl; cout<<endl; cout<< " The amount of times a number was repeated in a row was "<< rcount <<endl; cout<<endl; cout<< " The number repeated the most in a row was "<< rnum <<endl; cout<<endl; cout<< " The sum of all numbers is "<<tsum<<endl; cout<<endl; system("pause"); return 0; }