Print the integers from 1 to 20 using a for statement. and the unsigned int counter variable x. Print only 5 integers per line.

What will be an ideal response?

```
for (unsigned int x = 1; x <= 20; ++x) {
if (x % 5 == 0) {
cout << x << endl;
}
else {
cout << x << '\t';
}
}
```

Computer Science & Information Technology

You might also like to view...

The colors displayed by an LCD monitor are made by combining which of the following colors?

A) Cyan, yellow, magenta, and black B) Red, blue, and green C) Green, blue, and yellow D) Red, magenta, and blue

Computer Science & Information Technology

The way each page displays in editing mode of SharePoint depends on the type of page you are editing

Indicate whether the statement is true or false

Computer Science & Information Technology