Author Question: What will the following code display?cout (Read 43 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?

Aspirin is the most widely used drug in the world. It has even been recognized as such by the Guinness Book of World Records.

Did you know?

Asthma occurs in one in 11 children and in one in 12 adults. African Americans and Latinos have a higher risk for developing asthma than other groups.

Did you know?

Adults are resistant to the bacterium that causes Botulism. These bacteria thrive in honey – therefore, honey should never be given to infants since their immune systems are not yet resistant.

Did you know?

For about 100 years, scientists thought that peptic ulcers were caused by stress, spicy food, and alcohol. Later, researchers added stomach acid to the list of causes and began treating ulcers with antacids. Now it is known that peptic ulcers are predominantly caused by Helicobacter pylori, a spiral-shaped bacterium that normally exist in the stomach.

Did you know?

Pregnant women usually experience a heightened sense of smell beginning late in the first trimester. Some experts call this the body's way of protecting a pregnant woman from foods that are unsafe for the fetus.

For a complete list of videos, visit our video library