// CMPSC 101 Ch. 1 Demo #8
// Purpose - to illustrate several ways to format output
#include <iostream>
using namespace std;
int main()
{
cout << "Four score and seven years ago our fathers brought forth on this " <<
"continent a new nation, conceived in liberty and dedicated to the " <<
"proposition that all men are created equal." << endl;// The example above is one cout statement that is spread out over 3 lines of
// code to ensure that the source code file prints nicely.cout << endl << endl << endl; // printing a few blank lines to break up the output
cout << "Four score and seven years ago our fathers brought forth on this " << endl <<
"continent a new nation, conceived in liberty and dedicated to the " << endl <<
"proposition that all men are created equal." << endl;// The example above ensures not only that the source code will print nicely but also
// that the output in the DOS console window doesn't wrap around in an awkward manner.cout << "\n\n\n"; // printing a few blank lines to break up the output
cout << "Four score and seven years ago our fathers brought forth on this \n" <<
"continent a new nation, conceived in liberty and dedicated to the \n" <<
"proposition that all men are created equal.\n\n\n";return 0;
}//end of main