Write a program that uses nested loops to display the following lines

```
1 2 4 6
2 2 4 6
3 2 4 6
4 2 4 6
```

```
for (int i = 1; i <= 4; ++i) {
cout << i;
for (int j = 2; j <= 6; j += 2)
cout << " "<< j;
cout << endl;
}
]
```

Computer Science & Information Technology

You might also like to view...

In the term 1000BaseT, the ?1000? means

A) 1000 computers per network max B) 1000Mbps C) 1000 meters between central connectivity devices such as a switch D) 1000 ohm terminators are used on the Ethernet connectors

Computer Science & Information Technology

Which of the following statements is false?

a. You can overload a classes constructors. b. There is no mechanism in C++ for a constructor to call another constructor in the same class. c. Just as a constructor can call a class’s other member functions to perform tasks, C++11 allows constructors to call other constructors in the same class. d. To overload a constructor, provide in the class definition a prototype for each version of the constructor, and provide a separate constructor definition for each overloaded version.

Computer Science & Information Technology