Write the same code using the designed loop structure. You are not writing complete programs!
Write a for loop and a do while loop that writes the numbers 13 to 24. The list of numbers should be on one line in the output window, separated by a comma, like this: 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
```
cout << "\n";
for(int i = 13; i < 24; ++ i)
{
cout << i << ", ";
}
cout << i << endl;
cout << "\n";
i = 13;
while(i < 24)
{
cout << i << ", ";
++i;
}
cout << i << endl;
```
You might also like to view...
A Cluster Controller in SNA is typically used
a. to connect a Workstation directly to a Host Processor b. in between Workstations and a Communications Controller c. in between two Host Processors d. in between two Communications Controllers
You create a ____ statement using the if keyword, which tests a condition.
A. assignment B. comparison C. conditional D. formula
A generic font is a font that is identified by name, such as Times New Roman or Helvetica. ?
Answer the following statement true (T) or false (F)
In a Class C subnet, a network ID may occupy a maximum of:
A. 24bits. B. 16bits. C. 31bits. D. 32bits