![hiji0206](/avatars/29691.jpg)
hiji0206
10.03.2020 •
Computers and Technology
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;
Solved
Show answers
More tips
- L Leisure and Entertainment Should You Buy a Ceramic Knife?...
- C Computers and Internet How to easily and quickly disable Firebug in Gmail and Google Docs...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
Answers on questions: Computers and Technology
- C Computers and Technology Interpersonal skills during discussion with the boss...
- H History What was the main reason for americans waited for over a year after fighting broke out at lexington and concord to declare their independence?...
- H History Agovernment run by one person is usually evidence of what kind of system? a.single-party b.multiparty c.plural d.two-party...
- S Social Studies Which happened at the congress of vienna and 1815...
- M Mathematics At the end of a summer sale, an air conditioner that originally sold d for 350 was on sale at a discount of 30%. what was the sale price?...
- M Mathematics Acustomer buys 17.01 in gas and requests one five dollor[$5] lottery ticket , two one dollar [$1] ticket , and one [$3] lottery ticket . he gives you two winning tickets to be...
- B Biology How are vacuoles like storage bins?...
- E English Buster was a puny dog. he could not even scare the cat that lived next door. what is the dictionary meaning of the word puny in the sentence above? heavy or overweight noisy...
- H History Christianity was split into two groups: catholics and prosestants. what is this time period known as? a. the split in christendom b. the reform c. the resurrection d. the reformation...
- C Chemistry When a calcium atom loses its valence electrona the ion formed has an electron configuration that is the same as an atom of. (1) cl (2) ar (3) k (4) sc...
Ответ:
C++ is fun will be the output segment .
Explanation:
The following are the description of the statement .
In the given statement we declared a variable "number" of "int" type. Read there value by the user in the "number " variable. After that, there is if block since as mention in the question the value of the number variable is 11 so the if block condition is executed and print C++ on the console. Finally, the rest of the statement is executed which is after the else block it means it print is fun is printed on the console.Ответ: