What is the output of the following code segment if the user enters 23?

```
is the output of the following code segment if the user enters 23?
int number;
cout << "Enter a number: ";
cin >> number;
if (number > 0)
cout << "Hi, there!" << endl;
else
cout << "Good-bye." << endl;
```

a. Hi, there! Good-bye.
b. Hi, there!
c. Good-bye.
d. "Hi, there!"
e. nothing will output

b. Hi, there!

Computer Science & Information Technology

You might also like to view...

A repeater can be used to cache web pages for future retrieval.

a. true b. false

Computer Science & Information Technology

Any open window behind the active window is called an inactive window.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology