(Practice) Rewrite Program to print the numbers 2 to 10 in increments of two. The output of your program should be the following:
2 | 4 | 6 | 8 | 10 |
Program:
#includeusing namespace std;int main( ){int count;count = 1; // initialize countwhile (count <= 10){cout << count << " ";count++; // increment count}return 0;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.