What is the output of the following code segment?

```
for (k = 5; k > 0; k--)
{
for (i = 0; i < 5-k; i++)
cout << '.';
for (j=0; j < 2*k-1; j++)
cout << 'B';
cout << endl;
}
```


```
BBBBBBBBB
.BBBBBBB
..BBBBB
...BBB
....B
```

Computer Science & Information Technology

You might also like to view...

Why are ACL numbers 200 to 1299 skipped?

a. They are reserved. b. The are used by well-known ACLs. c. They are reserved for loopbacks. d. They are used by other protocols.

Computer Science & Information Technology

Describe the Security Device Manager (SDM).

What will be an ideal response?

Computer Science & Information Technology

What is the standard format in U.S. federal courts for the electronic submission of documents?

a. Microsoft Word (DOC) b. Portable Document Format (PDF) c. Encapsulated Postscript (EPS) d. Postscript (PS)

Computer Science & Information Technology

The ____ calendar item status option shows time with a slashed bar in Day, Week, Work Week, or Month view.

A. Free B. Tentative C. Out of Office D. Busy

Computer Science & Information Technology