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...
What is the name of the electronic component that provides timing signals to the motherboard?
A) Clock B) Chipset C) CPU D) Memory controller
Computer Science & Information Technology
In the _________ system, 10 different digits are used to represent numbers with a base of 10.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology