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...
Scaling reduces the width of a worksheet; it does not reduce the height
Indicate whether the statement is true or false
A number assigned to expansion adapters or ports so that the CPU can prioritize between two (or more) devices that need attention is a(n)
A) IRQ B) I/O address C) DMA channel D) USB enabler