Author Question: What will the following code display?cout (Read 41 times)

ishan

  • Hero Member
  • *****
  • Posts: 546
What will the following code display?
cout << "Four\n" << "score\n";
cout << "and" << "\nseven";
cout << "\nyears" << " ago" << endl;

Four score and seven
years ago

Four
score
and seven
years ago

Four score
and seven
years ago

Four
score
and
seven
years ago


apple

  • Sr. Member
  • ****
  • Posts: 352
Reply #1 on: May 22, 2019
Four
score
and
seven
years ago



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question

ishan

  • Hero Member
  • *****
  • Posts: 546
Reply #2 on: May 22, 2019
Thank you!



apple

  • Sr. Member
  • ****
  • Posts: 352
Reply #3 on: May 22, 2019
Always glad to help...



 

Did you know?

Despite claims by manufacturers, the supplement known as Ginkgo biloba was shown in a study of more than 3,000 participants to be ineffective in reducing development of dementia and Alzheimer’s disease in older people.

Did you know?

Hyperthyroidism leads to an increased rate of metabolism and affects about 1% of women but only 0.1% of men. For most people, this increased metabolic rate causes the thyroid gland to become enlarged (known as a goiter).

Did you know?

The word drug comes from the Dutch word droog (meaning "dry"). For centuries, most drugs came from dried plants, hence the name.

Did you know?

People often find it difficult to accept the idea that bacteria can be beneficial and improve health. Lactic acid bacteria are good, and when eaten, these bacteria improve health and increase longevity. These bacteria included in foods such as yogurt.

Did you know?

Blood in the urine can be a sign of a kidney stone, glomerulonephritis, or other kidney problems.

For a complete list of videos, visit our video library