/* This program uses a while loop to do a countdown from the number of seconds before blastoff. If the number of seconds is negative, the program does nothing. */ #include void main() { int sec; // Seconds left in countdown. cout << "How many seconds left to count down? "; cin >> sec; while (sec >= 1){ cout << sec << " "; sec--; } if (sec==0) cout << "BLASTOFF!\n"; }