14. What will be outputted given the segment of code, if 11 is entered from the keyboard?
int number;
cin >> number;
if ( number > 0 )
cout << "C++";
else
cout << "Soccer";
cout << " is ";
cout << "fun" << endl;
14. What will be outputted given the segment of code, if 11 is entered from the keyboard?
int number;
cin >> number;
if ( number > 0 )
cout << "C++";
else
cout << "Soccer";
cout << " is ";
cout << "fun" << endl;
> 14. What will be outputted given the segment of code, if 11 is entered from the keyboard?
Why not try it?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.