// File: cd.cpp // Build consecutive digit integer #include using namespace std; int main() {int start,digits; cout << "Give the first digit >"; cin >> start; // Error check if (start < 0 || start > 9) { cout << "Error: Bad Starting digit\n"; return(-1); } cout << "How many digits in the number? >"; cin >> digits; // Build the number int holdStart=start, number=start; start=(start+1)%10; for (int i=1;i