89.9k views
5 votes
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 funC++
C. Soccer is fun
D. None of the above

User Vad
by
8.4k points

1 Answer

7 votes
i want to say it’s C it’s the only one that makes sense
User Laur
by
7.7k points