Solved

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

Question 6

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