What does the following program segment do?

```
for ( int i = 1; i <= 5; i++ )
{
for ( int j = 1; j <= 3; j++ )
{
for ( int k = 1; k <= 4; k++ )
cout << '*';

cout << endl;
} // end inner for

cout << endl;
} // end outer for
```


```
// Prints 5 groups of 3 lines, each containing 4 asterisks.
#include
using namespace std;

int main()
{
for ( int i = 1; i <= 5; i++ )
{
for ( int j = 1; j <= 3; j++ )
{
for ( int k = 1; k <= 4; k++ )
cout << '*';

cout << endl;
} // end inner for

cout << endl;
} // end outer for
} // end main
```

Computer Science & Information Technology

You might also like to view...

The operating system provides the means for users to interact with a computer

Indicate whether the statement is true or false

Computer Science & Information Technology

All Access queries use ________ behind the scenes to extract data from tables

A) SQL statement B) Oracle statement C) Sybase statement D) Structured statement

Computer Science & Information Technology

A table style is a predefined set of formatting properties that control the appearance of a table

Indicate whether the statement is true or false.

Computer Science & Information Technology

Word generates a table of figures from the ____ in the document.

A. indices B. bookmarks C. topics D. captions

Computer Science & Information Technology