(Find the Code Errors) Find the error(s), if any, in each of the following:
a)
For ( unsigned int x = 100, x >= 1, ++x )cout << x < endl;b) The following code should print whether integer value is odd or even:
switch ( value % 2 ){case 0:cout << "Even integer" << endl;case 1:cout << "Odd integer" << endl;}c) The following code should output the odd integers from 19 to 1:
for ( unsigned int x = 19; x >= 1; x += 2 )cout << x << endl;d) The following code should output the even integers from 2 to 100:
unsigned int counter = 2;do{cout << counter << endl;counter += 2;} While ( counter<100 );
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.