Write a code fragment that uses nested for loops to display the multiplication table shown below.

```
1 2 3 4 5
2 4 6 8 10
3 6 9 12 15
4 8 12 16 20
5 10 15 20 25
```

What will be an ideal response?


```
for ( int i = 1; i <= 5; ++i ) {
for ( int j = 1; j <= 5; ++j )
cout << setw(4) < cout << endl;
}
```

Computer Science & Information Technology

You might also like to view...

Social media is used by a B2C company to help customers become more aware of the company's products

Indicate whether the statement is true or false

Computer Science & Information Technology

Text boxes created using the WordArt button have the At Back of Text wrapping option applied.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Case OL 1-1Seth is learning how to use the Address Book in Outlook.In order to get the Select Names window, Seth first clicked the New E-mail button, followed by the ____.

A. To button B. From button C. Cc box D. Insert button

Computer Science & Information Technology

The Help feature displays step-by-step instructions for performing many tasks.

a. true b. false

Computer Science & Information Technology