Please note that some of this code does not work properly.
//Lab 5.cpp //This program tears appart a 8 digit number //Written by Billy Gesner //Written For C++ //Due November 1, 2002 #include < iostream.h > int main() { int left=-9,x=1,numb[5]; int sum=0; char display; while ((left>99999999)||(left<10000000)) { cout<<"Enter your number. "<
>left; } while (x<5) //loop for taking apart number { numb[x]=left%100; left=left/100; sum=sum+numb[x]; x++; } x=4; while (x>0) { cout<