Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

C++ Program

“Code Blocks”

• Cout << “” Command


The "c" in cout refers to "character" and 'out' means
"output", hence cout means "character output".
The cout object is used along with the insertion operator
(<<) in order to display a stream of characters. 
- C++ manipulator endl function is used to insert a new line
character and flush the stream.

- It prints the output of the following statement in the next line.


Application: Create a program display the following
statements.
In 4 different pattern.
Display: Hello Big
World!
1) cout << “ Hello Big World! “ << endl;

2) cout <<“ Hello “ << “ Big” << ”World! “ << endl;

3) cout << “ Hello “ ; 1.) Hello Big World!


cout << “ Big “ ; 2.) Hello Big World!
cout << “ World! “ << endl ; 3.) Hello Big World!
4) cout << “ Hello “ ; 4.) Hello Big World!
cout << “ Big “ ; Name: Juan C. Cruz
cout << “ World! “ ; 10 - Patience
November 25,2022
Application: Create a program display the following statements.
In 4 different pattern.
Display: Hello Big World!

1.) Hello Big World!


2.) Hello Big World!
3.) Hello Big World!
4.) Hello Big World!
Name: Juan C. Cruz
10 - Patience
November 25,2022
Group Activity
Application: Create a program that will
display the statements below.
Display: Hello
Big
World!
Application: Create a program display the following statements.
Display: Hello
Big
World!
1. cout << “ Hello “ << endl;
cout << “ Big “ << endl;
cout << “ World! “ << endl;

2.) cout << “ Hello “ << endl << “ Big “ << endl;
cout << “ World! “ << endl;

3.) cout << “ Hello “ << endl; cout << “ Big “ endl; cout << “World!” ;

You might also like