you enter in a # then it will decrement until it reaches 0
Code://SonniE's CountDown #include <iostream> using namespace std; int main () { int x; char direction; cout << "Welcome To SonniE's Countdown!!\n"; cout << "Enter the direction you want to count(d = down a = accross): "; cin >> direction; if (direction == 'd') { cout << "\nEnter the starting number: "; cin >> x; while (x > 0) { cout << x << "\n "; --x; } cout << "BlastoFF!!\n"; system("pause"); } if (direction == 'a') { cout << "\nEnter the starting number: "; cin >> x; while (x > 0) { cout << x << ", "; --x; } cout << "BlastoFF!!\n"; system("pause"); return 0; } }