#include #include //for rand, exit, EXIT_SUCCESS using namespace std; int main(int argc, char **argv) { int r; //uninitialized variable if ((r = rand()) != 0) { //assign and test cout << "The first random number was " << r << ".\n"; } else { cout << "The first random number was zero (" << r << ").\n"; } return EXIT_SUCCESS; }