next up previous
Next: Special Characters Up: Newline Previous: Example 2

Example 3








// This program is used to demonstrate newline and endl
// This is program 3
#include <iostream.h>

main( )
{
cout << "this is the first line" << " this is the second line";
cout << "This is the First line $\backslash$ n" << "This is the second line $\backslash$ n";
cout << "This is the First line" << endl << "This is the second line $\backslash$n";
cout << 3 << "$\backslash$ n" << 2 << endl << 4 << 6;
return 0;
}



Yousef Haik
2/23/1998