subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text “invalid staff id” should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
You know the right answer?
What will the following segment of code output if 11 is entered at the keyboard?
int number;...
Questions
question
Mathematics, 09.12.2020 21:10
question
Mathematics, 09.12.2020 21:10