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 05:00
Lisa has a section of her document that she would like to include in the index. which option should lisa choose? mark index mark entry insert endnote add text
Answers: 3
question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
You know the right answer?
What will the following segment of code output if 11 is entered at the keyboard?
int number;...
Questions
question
Chemistry, 11.11.2020 09:30
question
History, 11.11.2020 09:30
question
Biology, 11.11.2020 09:30
question
Mathematics, 11.11.2020 09:30
question
Mathematics, 11.11.2020 09:30
question
Computers and Technology, 11.11.2020 09:30
question
English, 11.11.2020 09:30
question
English, 11.11.2020 09:30
Questions on the website: 13722361