What will the following segment of code output if 11 is entered at the keyboard?
int number;
cin >> number;
if (number > 0)
cout << "C++";
else
cout << "Soccer";
cout << " is ";
cout << "fun" << endl;
A) C++ is fun
B) Soccer is fun
C) C++
D) C++fun
E) Soccerfun
Correct Answer:
Verified
Q25: Which statement allows you to properly check
Q26: In C++ the = operator indicates:
A)equality
B)assignment
C)subtraction
D)negation
E)None of
Q26: What will the following program display?
Q28: What is the value of the following
Q28: What is the value of the following
Q31: What is the value of the following
Q32: What is the value of donuts
Q34: The _ of a variable is limited
Q35: Given that x = 2, y =
Q42: When a program lets the user know
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents