Solved

What Will the Following Segment of Code Output If 11 \quad

Question 30

Multiple Choice

What will the following segment of code output if 11 is entered at the keyboard?
int number;
cin >> number;
if (number > 0)
\quad cout << "C++";
else
\quad cout << "Soccer";
cout << " is ";
cout << "fun" << endl;


A) C++ is fun
B) Soccer is fun
C) C++
D) C++fun
E) Soccerfun

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents